diff --git a/shadowsocks/local.py b/shadowsocks/local.py index e480b58..e7bf48d 100755 --- a/shadowsocks/local.py +++ b/shadowsocks/local.py @@ -70,7 +70,7 @@ def main(): logging.error(e) import traceback traceback.print_exc() - os._exit(0) + os._exit(1) if __name__ == '__main__': main() diff --git a/shadowsocks/server.py b/shadowsocks/server.py index 3adc4fd..c896a25 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -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':