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