Browse Source

exit 1 on error; #179

auth
clowwindy 10 years ago
parent
commit
ea70a5bd79
  1. 2
      shadowsocks/local.py
  2. 2
      shadowsocks/server.py

2
shadowsocks/local.py

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

2
shadowsocks/server.py

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

Loading…
Cancel
Save