From ea70a5bd790eaa8e7bb5706f50f32f3aca1be06e Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 12 Sep 2014 22:20:33 +0800 Subject: [PATCH] exit 1 on error; #179 --- shadowsocks/local.py | 2 +- shadowsocks/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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':