mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add patch from FSCORE-101
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7774 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -824,6 +824,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
#ifdef SIGQUIT
|
||||
static void handle_SIGQUIT(int sig)
|
||||
{
|
||||
if (sig);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Sig Quit!\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SIGPIPE
|
||||
static void handle_SIGPIPE(int sig)
|
||||
{
|
||||
@@ -891,6 +901,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
|
||||
#ifdef SIGPIPE
|
||||
signal(SIGPIPE, handle_SIGPIPE);
|
||||
#endif
|
||||
#ifdef SIGQUIT
|
||||
signal(SIGQUIT, handle_SIGQUIT);
|
||||
#endif
|
||||
#ifdef SIGPOLL
|
||||
signal(SIGPOLL, handle_SIGPOLL);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user