Translation and other merge requests #224
|
@ -173,20 +173,19 @@ def doCleanShutdown():
|
||||||
printLock.acquire()
|
printLock.acquire()
|
||||||
print 'Finished flushing inventory.'
|
print 'Finished flushing inventory.'
|
||||||
printLock.release()
|
printLock.release()
|
||||||
|
|
||||||
|
|
||||||
if safeConfigGetBoolean('bitmessagesettings','daemon'):
|
|
||||||
printLock.acquire()
|
|
||||||
print 'Done.'
|
|
||||||
printLock.release()
|
|
||||||
os._exit(0)
|
|
||||||
|
|
||||||
#Messy hack to kill child processes immediately. May not work on all platforms.
|
#Messy hack to kill child processes immediately. May not work on all platforms.
|
||||||
try:
|
try:
|
||||||
os.killpg(os.getpgid(os.getpid()), signal.SIGTERM)
|
os.killpg(os.getpgid(os.getpid()), signal.SIGTERM)
|
||||||
except:
|
except:
|
||||||
os.kill(os.getpid(), signal.SIGTERM)
|
os.kill(os.getpid(), signal.SIGTERM)
|
||||||
|
|
||||||
|
if safeConfigGetBoolean('bitmessagesettings','daemon'):
|
||||||
|
printLock.acquire()
|
||||||
|
print 'Done.'
|
||||||
|
printLock.release()
|
||||||
|
os._exit(0)
|
||||||
|
|
||||||
#Wen you want to command a sendDataThread to do something, like shutdown or send some data, this function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are responsible for putting their queue into (and out of) the sendDataQueues list.
|
#Wen you want to command a sendDataThread to do something, like shutdown or send some data, this function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are responsible for putting their queue into (and out of) the sendDataQueues list.
|
||||||
def broadcastToSendDataQueues(data):
|
def broadcastToSendDataQueues(data):
|
||||||
#print 'running broadcastToSendDataQueues'
|
#print 'running broadcastToSendDataQueues'
|
||||||
|
|
Reference in New Issue
Block a user