mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 13:52:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00ffbc09fe | ||
|
|
dca6cc2adc |
No files matched your search
+4
-2
@@ -1360,14 +1360,16 @@ class LXMRouter:
|
|||||||
def sigint_handler(self, signal, frame):
|
def sigint_handler(self, signal, frame):
|
||||||
if not self.exit_handler_running:
|
if not self.exit_handler_running:
|
||||||
RNS.log("Received SIGINT, shutting down now!", RNS.LOG_WARNING)
|
RNS.log("Received SIGINT, shutting down now!", RNS.LOG_WARNING)
|
||||||
sys.exit(0)
|
self.exit_handler()
|
||||||
|
RNS.exit(0)
|
||||||
else:
|
else:
|
||||||
RNS.log("Received SIGINT, but exit handler is running, keeping process alive until storage persist is complete", RNS.LOG_WARNING)
|
RNS.log("Received SIGINT, but exit handler is running, keeping process alive until storage persist is complete", RNS.LOG_WARNING)
|
||||||
|
|
||||||
def sigterm_handler(self, signal, frame):
|
def sigterm_handler(self, signal, frame):
|
||||||
if not self.exit_handler_running:
|
if not self.exit_handler_running:
|
||||||
RNS.log("Received SIGTERM, shutting down now!", RNS.LOG_WARNING)
|
RNS.log("Received SIGTERM, shutting down now!", RNS.LOG_WARNING)
|
||||||
sys.exit(0)
|
self.exit_handler()
|
||||||
|
RNS.exit(0)
|
||||||
else:
|
else:
|
||||||
RNS.log("Received SIGTERM, but exit handler is running, keeping process alive until storage persist is complete", RNS.LOG_WARNING)
|
RNS.log("Received SIGTERM, but exit handler is running, keeping process alive until storage persist is complete", RNS.LOG_WARNING)
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ PN_VALIDATION_POOL_MIN_SIZE = 256
|
|||||||
|
|
||||||
active_jobs = {}
|
active_jobs = {}
|
||||||
|
|
||||||
|
if RNS.vendor.platformutils.is_linux(): multiprocessing.set_start_method("fork")
|
||||||
|
|
||||||
def stamp_workblock(material, expand_rounds=WORKBLOCK_EXPAND_ROUNDS):
|
def stamp_workblock(material, expand_rounds=WORKBLOCK_EXPAND_ROUNDS):
|
||||||
wb_st = time.time()
|
wb_st = time.time()
|
||||||
workblock = b""
|
workblock = b""
|
||||||
|
|||||||
Reference in new issue
Block a user