don't propagate SIGHUP ignore to child processes
Related: https://pagure.io/koji/issue/672
This commit is contained in:
parent
b5ff9d8b51
commit
2006ab1dd8
1 changed files with 3 additions and 2 deletions
|
|
@ -584,8 +584,9 @@ def daemonize():
|
|||
if pid:
|
||||
os._exit(0)
|
||||
os.setsid()
|
||||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
# fork again
|
||||
# fork again, no need to ignore SIGHUP
|
||||
# https://pagure.io/koji/issue/672
|
||||
# https://code.activestate.com/recipes/278731-creating-a-daemon-the-/
|
||||
pid = os.fork()
|
||||
if pid:
|
||||
os._exit(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue