mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
@@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
@@ -13,9 +14,14 @@ 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.
|
||||||
_SIGNALS = ([signal.SIGTERM] if os.name == "nt" else
|
if os.name == "nt":
|
||||||
[signal.SIGTERM, signal.SIGHUP, signal.SIGQUIT,
|
_SIGNALS = [signal.SIGTERM]
|
||||||
signal.SIGXCPU, signal.SIGXFSZ, signal.SIGPWR])
|
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]
|
||||||
|
|
||||||
|
|
||||||
class ErrorHandler(object):
|
class ErrorHandler(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user