diff options
-rw-r--r-- | sfeed_curses.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfeed_curses.c b/sfeed_curses.c index 0d878f7..6f151d4 100644 --- a/sfeed_curses.c +++ b/sfeed_curses.c @@ -558,6 +558,9 @@ init(void) sigaction(SIGINT, &sa, NULL); sigaction(SIGTERM, &sa, NULL); sigaction(SIGWINCH, &sa, NULL); + /* ignore SIGCHLD: for non-interactive programs: don't become a zombie */ + sa.sa_handler = SIG_IGN; + sigaction(SIGCHLD, &sa, NULL); } void |