From 764618211319c8d3572d9b5ccb305c307443cd0a Mon Sep 17 00:00:00 2001 From: "lorthiois@bbsoft.fr" Date: Sat, 4 Jul 2009 14:58:08 +0000 Subject: [PATCH] fixed defunct process after fork git-svn-id: http://tint2.googlecode.com/svn/trunk@140 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- ChangeLog | 2 ++ src/tint.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index dcb119a..def751b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +2009-07-04 +- fixed 'defunct' process after fork ---------------------------------------------------------------- 2009-06-30 thilor77 diff --git a/src/tint.c b/src/tint.c index d062c70..dc90b02 100644 --- a/src/tint.c +++ b/src/tint.c @@ -53,6 +53,7 @@ void init () signal(SIGINT, signal_handler); signal(SIGTERM, signal_handler); signal(SIGHUP, signal_handler); + signal(SIGCLD, SIG_IGN); // don't have to wait() after fork() // set global data memset(&server, 0, sizeof(Server_global));