[xiph-commits] r9435 - icecast/trunk/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Fri Jun 10 11:01:56 PDT 2005


Author: karl
Date: 2005-06-10 11:01:53 -0700 (Fri, 10 Jun 2005)
New Revision: 9435

Modified:
   icecast/trunk/icecast/src/sighandler.c
Log:
this is needed for linuxthreads, without it, zombie processes are left 
when on-[dis]connect is used


Modified: icecast/trunk/icecast/src/sighandler.c
===================================================================
--- icecast/trunk/icecast/src/sighandler.c	2005-06-10 15:42:06 UTC (rev 9434)
+++ icecast/trunk/icecast/src/sighandler.c	2005-06-10 18:01:53 UTC (rev 9435)
@@ -32,6 +32,7 @@
 #ifndef _WIN32
 void _sig_hup(int signo);
 void _sig_die(int signo);
+void _sig_ignore(int signo);
 #endif
 
 void sighandler_initialize(void)
@@ -41,11 +42,15 @@
     signal(SIGINT, _sig_die);
     signal(SIGTERM, _sig_die);
     signal(SIGPIPE, SIG_IGN);
-    signal(SIGCHLD, SIG_IGN);
+    signal(SIGCHLD, _sig_ignore);
 #endif
 }
 
 #ifndef _WIN32
+void _sig_ignore(int signo)
+{
+    signal(signo, _sig_ignore);
+}
 
 void _sig_hup(int signo)
 {



More information about the commits mailing list