mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Let's ignore HUP when daemonized.
This commit is contained in:
parent
ea4259af2f
commit
59151542b9
@ -385,6 +385,7 @@ if __name__ == '__main__':
|
|||||||
sys.stderr.close()
|
sys.stderr.close()
|
||||||
sys.stdout = StringIO.StringIO()
|
sys.stdout = StringIO.StringIO()
|
||||||
sys.stderr = StringIO.StringIO()
|
sys.stderr = StringIO.StringIO()
|
||||||
|
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||||
log.info('Completed daemonization. Current PID: %s', os.getpid())
|
log.info('Completed daemonization. Current PID: %s', os.getpid())
|
||||||
|
|
||||||
# Let's write the PID file. This has to go after daemonization, obviously.
|
# Let's write the PID file. This has to go after daemonization, obviously.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user