|
|
|
@ -6,7 +6,7 @@ from multiprocessing import current_process
|
|
|
|
|
from threading import current_thread, enumerate
|
|
|
|
|
import traceback
|
|
|
|
|
|
|
|
|
|
from bmconfigparser import BMConfigParser
|
|
|
|
|
import shared
|
|
|
|
|
from debug import logger
|
|
|
|
|
import queues
|
|
|
|
|
import shutdown
|
|
|
|
@ -54,7 +54,7 @@ def signal_handler(signal, frame):
|
|
|
|
|
if current_thread().name not in ("PyBitmessage", "MainThread"):
|
|
|
|
|
return
|
|
|
|
|
logger.error("Got signal %i", signal)
|
|
|
|
|
if BMConfigParser().safeGetBoolean('bitmessagesettings', 'daemon'):
|
|
|
|
|
if shared.thisapp.daemon:
|
|
|
|
|
shutdown.doCleanShutdown()
|
|
|
|
|
else:
|
|
|
|
|
allThreadTraceback(frame)
|
|
|
|
|