Ejemplo n.º 1
0
def signal_handler(signal, frame):
    if shared.safeConfigGetBoolean('bitmessagesettings', 'daemon'):
        shared.doCleanShutdown()
        sys.exit(0)
    else:
        print('Unfortunately you cannot use Ctrl+C ' +
              'when running the UI because the UI captures the signal.')
Ejemplo n.º 2
0
def signal_handler(signal, frame):
    logger.error("Got signal %i in %s/%s", signal,
                 current_process().name,
                 current_thread().name)
    if current_process().name != "MainProcess":
        raise StopIteration("Interrupted")
    if current_thread().name != "MainThread":
        return
    logger.error("Got signal %i", signal)
    if shared.safeConfigGetBoolean('bitmessagesettings', 'daemon'):
        shared.doCleanShutdown()
    else:
        print 'Unfortunately you cannot use Ctrl+C when running the UI because the UI captures the signal.'
Ejemplo n.º 3
0
def signal_handler(signal, frame):
    shared.doCleanShutdown()
    sys.exit(0)
Ejemplo n.º 4
0
 def stop(self):
     with shared.printLock:
         print 'Stopping Bitmessage Deamon.'
     shared.doCleanShutdown()
Ejemplo n.º 5
0
 def stop(self):
     with shared.printLock:
         print 'Stopping Bitmessage Deamon.'
     shared.doCleanShutdown()
Ejemplo n.º 6
0
 def stop():
     with shared.printLock:
         print('Stopping Bitmessage Deamon.')
     shared.doCleanShutdown()
Ejemplo n.º 7
0
def signal_handler(signal, frame):
    if shared.safeConfigGetBoolean('bitmessagesettings', 'daemon'):
        shared.doCleanShutdown()
        sys.exit(0)
    else:
        print 'Unfortunately you cannot use Ctrl+C when running the UI because the UI captures the signal.'
Ejemplo n.º 8
0
def stop():
    shared.doCleanShutdown()
Ejemplo n.º 9
0
def signal_handler(signal, frame):
    logger.error("Got signal %i", signal)
    if shared.safeConfigGetBoolean("bitmessagesettings", "daemon"):
        shared.doCleanShutdown()
    else:
        print "Unfortunately you cannot use Ctrl+C when running the UI because the UI captures the signal."
Ejemplo n.º 10
0
def stop():
    shared.doCleanShutdown()
Ejemplo n.º 11
0
def signal_handler(signal, frame):
    shared.doCleanShutdown()
    sys.exit(0)