Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2007-08-11 21:46:59 UTC

Modified files:
     ircd/ircd_signal.c configure.ac ChangeLog

Log message:

Get rid of code to test for restartable syscalls.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.843 ircu2.10/ChangeLog:1.844
--- ircu2.10/ChangeLog:1.843    Sat Aug 11 14:43:18 2007
+++ ircu2.10/ChangeLog  Sat Aug 11 14:46:49 2007
@@ -1,4 +1,11 @@
-2008-04-10  Michael Poole <[EMAIL PROTECTED]>
+2007-08-11  Michael Poole <[EMAIL PROTECTED]>
+
+       * configure.ac: Remove AC_SYS_RESTARTABLE_SYSCALLS.
+
+       * ircd/ircd_signal.c (setup_signals): Remove code for restartable
+       syscalls.  Using sigaction() requires a flag to restart syscalls.
+
+2007-04-10  Michael Poole <[EMAIL PROTECTED]>
 
        * test.l: #include <errno.h> since we use errno.
 
Index: ircu2.10/configure.ac
diff -u ircu2.10/configure.ac:1.3 ircu2.10/configure.ac:1.4
--- ircu2.10/configure.ac:1.3   Mon Jun 26 21:46:10 2006
+++ ircu2.10/configure.ac       Sat Aug 11 14:46:49 2007
@@ -14,7 +14,7 @@
 dnl along with this program; if not, write to the Free Software
 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 dnl
-dnl @(#)$Id: configure.ac,v 1.3 2006/06/27 04:46:10 entrope Exp $
+dnl @(#)$Id: configure.ac,v 1.4 2007/08/11 21:46:49 entrope Exp $
 
 AC_INIT([Undernet IRC Daemon], 10.13.alpha.0, [EMAIL PROTECTED], [ircu2])
 AC_PREREQ(2.59)
@@ -34,7 +34,7 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA])
 
-AC_REVISION($Revision: 1.3 $)
+AC_REVISION($Revision: 1.4 $)
 
 AC_CONFIG_SRCDIR([ircd/ircd.c])
 AM_INIT_AUTOMAKE([foreign])
@@ -124,10 +124,6 @@
 dnl Checks for library functions.
 AC_CHECK_FUNCS([kqueue setrlimit getrusage times])
 
-dnl Do we have restarting syscalls?
-dnl XXX Note: this macro has been obsoleted
-AC_SYS_RESTARTABLE_SYSCALLS
-
 dnl Figure out non-blocking and signals
 unet_NONBLOCKING
 unet_SIGNALS
Index: ircu2.10/ircd/ircd_signal.c
diff -u ircu2.10/ircd/ircd_signal.c:1.7 ircu2.10/ircd/ircd_signal.c:1.8
--- ircu2.10/ircd/ircd_signal.c:1.7     Thu Apr  6 20:27:50 2006
+++ ircu2.10/ircd/ircd_signal.c Sat Aug 11 14:46:49 2007
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Signal handlers for ircu.
- * @version $Id: ircd_signal.c,v 1.7 2006/04/07 03:27:50 entrope Exp $
+ * @version $Id: ircd_signal.c,v 1.8 2007/08/11 21:46:49 entrope Exp $
  */
 #include "config.h"
 
@@ -246,15 +246,6 @@
   signal_add(&sig_int, sigint_callback, 0, SIGINT);
   signal_add(&sig_term, sigterm_callback, 0, SIGTERM);
   signal_add(&sig_chld, sigchld_callback, 0, SIGCHLD);
-
-#ifdef HAVE_RESTARTABLE_SYSCALLS
-  /*
-   * At least on Apollo sr10.1 it seems continuing system calls
-   * after signal is the default. The following 'siginterrupt'
-   * should change that default to interrupting calls.
-   */
-  siginterrupt(SIGALRM, 1);
-#endif
 }
 
 /** Kill and clean up all child processes. */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to