mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:25:24 +02:00
Removed SIGPWR entirely
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user