This does not appear to be needed any longer, and while this is in
place a dependent library that tries to start a child process will
hang waiting on the SIG_CHLD signal that the FreeSWITCH core 'ate'.
FS-7250 #resolve
return;
}
-#ifndef WIN32
-
-static void handle_SIGCHLD(int sig)
-{
- int status = 0;
- int pid = 0;
-
- if (sig) {};
-
- pid = wait(&status);
- if (pid > 0) {
- system_ready = -1;
- }
-
- return;
-}
-#endif
-
/* kill a freeswitch process running in background mode */
static int freeswitch_kill_background()
{
fprintf(stderr, "System Error!\n");
exit(-1);
}
-
- signal(SIGCHLD, handle_SIGCHLD);
}
#endif
}
-#ifndef WIN32
-static void handle_SIGCHLD(int sig)
-{
- int status = 0;
-
- wait(&status);
- return;
-}
-#endif
-
#ifdef TRAP_BUS
static void handle_SIGBUS(int sig)
{
{
/* set signal handlers */
signal(SIGINT, SIG_IGN);
-#ifndef WIN32
- if (switch_test_flag((&runtime), SCF_THREADED_SYSTEM_EXEC)) {
- signal(SIGCHLD, SIG_DFL);
- } else {
- signal(SIGCHLD, handle_SIGCHLD);
- }
-#endif
#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);
#endif