mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +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.stdout = StringIO.StringIO()
|
||||
sys.stderr = StringIO.StringIO()
|
||||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
log.info('Completed daemonization. Current PID: %s', os.getpid())
|
||||
|
||||
# Let's write the PID file. This has to go after daemonization, obviously.
|
||||
|
Loading…
Reference in New Issue
Block a user