[Freeswitch-svn] [commit] r3423 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Mon Nov 20 16:43:44 EST 2006
Author: anthm
Date: Mon Nov 20 16:43:44 2006
New Revision: 3423
Modified:
freeswitch/trunk/src/switch_core.c
Log:
Add signal handlers for SIGIO and SIGPOLL
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Mon Nov 20 16:43:44 2006
@@ -3999,6 +3999,7 @@
runtime.initiated = switch_time_now();
return SWITCH_STATUS_SUCCESS;
}
+
#ifdef SIGPIPE
static void handle_SIGPIPE(int sig)
{
@@ -4007,6 +4008,25 @@
return;
}
#endif
+
+#ifdef SIGPOLL
+static void handle_SIGPOLL(int sig)
+{
+ if(sig);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Sig Poll!\n");
+ return;
+}
+#endif
+
+#ifdef SIGIO
+static void handle_SIGIO(int sig)
+{
+ if(sig);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Sig I/O!\n");
+ return;
+}
+#endif
+
#ifdef TRAP_BUS
static void handle_SIGBUS(int sig)
{
@@ -4032,6 +4052,12 @@
signal(SIGINT, handle_SIGINT);
#ifdef SIGPIPE
signal(SIGPIPE, handle_SIGPIPE);
+#endif
+#ifdef SIGPOLL
+ signal(SIGPIPE, handle_SIGPOLL);
+#endif
+#ifdef SIGIO
+ signal(SIGPIPE, handle_SIGIO);
#endif
#ifdef TRAP_BUS
signal(SIGBUS, handle_SIGBUS);
More information about the Freeswitch-svn
mailing list