mirror of
https://github.com/certbot/certbot.git
synced 2026-04-15 22:20:28 -04:00
Removed SIGPWR entirely
This commit is contained in:
parent
9264d54605
commit
c1012f5f00
1 changed files with 3 additions and 9 deletions
|
|
@ -2,7 +2,6 @@
|
|||
import logging
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
|
||||
|
|
@ -14,14 +13,9 @@ logger = logging.getLogger(__name__)
|
|||
# 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
|
||||
# immediately.
|
||||
if os.name == "nt":
|
||||
_SIGNALS = [signal.SIGTERM]
|
||||
elif sys.platform == "darwin":
|
||||
_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]
|
||||
_SIGNALS = ([signal.SIGTERM] if os.name == "nt" else
|
||||
[signal.SIGTERM, signal.SIGHUP, signal.SIGQUIT,
|
||||
signal.SIGXCPU, signal.SIGXFSZ])
|
||||
|
||||
|
||||
class ErrorHandler(object):
|
||||
|
|
|
|||
Loading…
Reference in a new issue