[asterisk-commits] tilghman: branch 1.4 r269635 - in /branches/1.4/main: asterisk.c logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 10 02:52:40 CDT 2010


Author: tilghman
Date: Thu Jun 10 02:52:34 2010
New Revision: 269635

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269635
Log:
Ensure signals are not blocked inside other signal handlers.

This eliminates the annoying <beep> on the console.

(closes issue #17477)
 Reported by: jvandal
 Patches: 
       20100610__issue17477.diff.txt uploaded by tilghman (license 14)

Modified:
    branches/1.4/main/asterisk.c
    branches/1.4/main/logger.c

Modified: branches/1.4/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=269635&r1=269634&r2=269635
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Thu Jun 10 02:52:34 2010
@@ -767,6 +767,7 @@
 
 static struct sigaction null_sig_handler = {
 	.sa_handler = _null_sig_handler,
+	.sa_flags = SA_RESTART,
 };
 
 AST_MUTEX_DEFINE_STATIC(safe_system_lock);
@@ -1166,6 +1167,7 @@
 
 static struct sigaction urg_handler = {
 	.sa_handler = _urg_handler,
+	.sa_flags = SA_RESTART,
 };
 
 static void _hup_handler(int num)
@@ -1185,6 +1187,7 @@
 
 static struct sigaction hup_handler = {
 	.sa_handler = _hup_handler,
+	.sa_flags = SA_RESTART,
 };
 
 static void _child_handler(int sig)
@@ -1203,6 +1206,7 @@
 
 static struct sigaction child_handler = {
 	.sa_handler = _child_handler,
+	.sa_flags = SA_RESTART,
 };
 
 /*! \brief Set an X-term or screen title */

Modified: branches/1.4/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/logger.c?view=diff&rev=269635&r1=269634&r2=269635
==============================================================================
--- branches/1.4/main/logger.c (original)
+++ branches/1.4/main/logger.c Thu Jun 10 02:52:34 2010
@@ -584,6 +584,7 @@
 
 static struct sigaction handle_SIGXFSZ = {
 	.sa_handler = _handle_SIGXFSZ,
+	.sa_flags = SA_RESTART,
 };
 
 int init_logger(void)




More information about the asterisk-commits mailing list