Skip to content

Commit

Permalink
Ignore SIGCHLD to prevent keeping zombie process.
Browse files Browse the repository at this point in the history
If we ignore SIGCHLD then init(1) automatically reaps child process on exit and this fixes not getting player process close event on polling/inotify trackers.
Fixes z411#508
  • Loading branch information
ahmubashshir committed Oct 30, 2020
1 parent fbaae6f commit 6b186e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trackma/ui/gtk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

def main():
signal.signal(signal.SIGINT, signal.SIG_DFL)
signal.signal(signal.SIGCLD, signal.SIG_IGN)

print("Trackma-gtk v{}".format(utils.VERSION))
app = TrackmaApplication()
Expand Down

0 comments on commit 6b186e9

Please sign in to comment.