mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
This commit is contained in:
parent
e88cf4b4b5
commit
79a01a60f4
@ -109,6 +109,9 @@ class Handler(object):
|
||||
except KeyboardInterrupt:
|
||||
# exit on <ctrl><c>
|
||||
raise
|
||||
except SystemExit:
|
||||
# stop process handler on system exit
|
||||
return
|
||||
except:
|
||||
# something went wrong... send traceback to syslog, restart listener (wait for a short time)
|
||||
print (traceback.format_exc())
|
||||
@ -174,6 +177,9 @@ class HandlerClient(threading.Thread):
|
||||
|
||||
# send end of stream characters
|
||||
self.connection.sendall("%c%c%c"%(chr(0),chr(0),chr(0)))
|
||||
except SystemExit:
|
||||
# ignore system exit related errors
|
||||
pass
|
||||
except:
|
||||
print (traceback.format_exc())
|
||||
syslog.syslog(syslog.LOG_ERR,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user