summaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-11-09 09:19:29 +0000
committer"Vladimir N. Oleynik"2005-11-09 09:19:29 +0000
commitecfd1f6a350c91bd2b562cd3d04c160a54debc61 (patch)
tree185f44c922e2923f5768f756445efdfdd0870060 /networking/inetd.c
parent6f03722448c35d825cd36a381725d6481920071d (diff)
downloadbusybox-ecfd1f6a350c91bd2b562cd3d04c160a54debc61.zip
busybox-ecfd1f6a350c91bd2b562cd3d04c160a54debc61.tar.gz
change osbolete sigpause() to sigsuspend()
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index b2b0f73..5388bf7 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1273,7 +1273,7 @@ inetd_main (int argc, char *argv[])
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 @@ inetd_main (int argc, char *argv[])
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 @@ inetd_main (int argc, char *argv[])
if (nsock == 0) {
Block_Using_Signals(omask);
while (nsock == 0)
- sigpause (0L);
+ sigsuspend (&wait_mask);
sigprocmask(SIG_UNBLOCK, &omask, NULL);
}