svn commit: trunk/busybox/networking

vodz at busybox.net vodz at busybox.net
Wed Nov 9 09:19:40 UTC 2005


Author: vodz
Date: 2005-11-09 01:19:29 -0800 (Wed, 09 Nov 2005)
New Revision: 12195

Log:
change osbolete sigpause() to sigsuspend()

Modified:
   trunk/busybox/networking/inetd.c


Changeset:
Modified: trunk/busybox/networking/inetd.c
===================================================================
--- trunk/busybox/networking/inetd.c	2005-11-09 03:08:14 UTC (rev 12194)
+++ trunk/busybox/networking/inetd.c	2005-11-09 09:19:29 UTC (rev 12195)
@@ -1273,7 +1273,7 @@
   pid_t pid;
   char buf[50];
   char *stoomany;
-  sigset_t omask;
+  sigset_t omask, wait_mask;
 
 #ifdef INETD_SETPROCTITLE
   extern char **environ;
@@ -1364,7 +1364,7 @@
   sigaction (SIGINT, &sa, NULL);
   sa.sa_handler = SIG_IGN;
   sigaction (SIGPIPE, &sa, &sapipe);
-
+  memset(&wait_mask, 0, sizeof(wait_mask)); 
   {
 	/* space for daemons to overwrite environment for ps */
 #define DUMMYSIZE       100
@@ -1383,7 +1383,7 @@
 	if (nsock == 0) {
 	  Block_Using_Signals(omask);
 	  while (nsock == 0)
-		sigpause (0L);
+		sigsuspend (&wait_mask);
 	  sigprocmask(SIG_UNBLOCK, &omask, NULL);
 	}
 




More information about the busybox-cvs mailing list