Removed SIGPWR entirely

This commit is contained in:
Brad Warren
2015-09-28 12:25:37 -07:00
parent 9264d54605
commit c1012f5f00
+3 -9
View File
@@ -2,7 +2,6 @@
import logging import logging
import os import os
import signal import signal
import sys
import traceback import traceback
@@ -14,14 +13,9 @@ logger = logging.getLogger(__name__)
# potentially occur from inside Python. Signals such as SIGILL were not # potentially occur from inside Python. Signals such as SIGILL were not
# included as they could be a sign of something devious and we should terminate # included as they could be a sign of something devious and we should terminate
# immediately. # immediately.
if os.name == "nt": _SIGNALS = ([signal.SIGTERM] if os.name == "nt" else
_SIGNALS = [signal.SIGTERM] [signal.SIGTERM, signal.SIGHUP, signal.SIGQUIT,
elif sys.platform == "darwin": signal.SIGXCPU, signal.SIGXFSZ])
_SIGNALS = [signal.SIGTERM, signal.SIGHUP, signal.SIGQUIT, signal.SIGXCPU,
signal.SIGXFSZ]
else:
_SIGNALS = [signal.SIGTERM, signal.SIGHUP, signal.SIGQUIT, signal.SIGXCPU,
signal.SIGXFSZ, signal.SIGPWR]
class ErrorHandler(object): class ErrorHandler(object):