mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
this is needed for linuxthreads, without it, zombie processes are left
when on-[dis]connect is used svn path=/icecast/trunk/icecast/; revision=9435
This commit is contained in:
parent
be78a3ae11
commit
554649cf01
@ -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 @@ void sighandler_initialize(void)
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user