Skip to content

Commit

Permalink
Exit without cleanup in parent process
Browse files Browse the repository at this point in the history
  • Loading branch information
knsd committed Feb 29, 2016
1 parent 955c8f9 commit c8c3530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daemonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ def start(self):
# Fork error. Exit badly.
sys.exit(1)
elif process_id != 0:
# This is the parent process. Exit.
sys.exit(0)
# This is the parent process. Exit without cleanup,
# see https://github.com/thesharp/daemonize/issues/46
os._exit(0)
# This is the child process. Continue.

# Stop listening for signals that the parent process receives.
Expand Down

0 comments on commit c8c3530

Please sign in to comment.