exit 1 on error; #179

This commit is contained in:
clowwindy 2014-09-12 22:20:33 +08:00
parent 380a646f09
commit ea70a5bd79
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ def main():
logging.error(e)
import traceback
traceback.print_exc()
os._exit(0)
os._exit(1)
if __name__ == '__main__':
main()

View file

@ -81,7 +81,7 @@ def main():
logging.error(e)
import traceback
traceback.print_exc()
os._exit(0)
os._exit(1)
if int(config['workers']) > 1:
if os.name == 'posix':