diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-11-09 12:19:29 +0300 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-11-09 12:19:29 +0300 |
commit | ecfd1f6a350c91bd2b562cd3d04c160a54debc61 (patch) | |
tree | 185f44c922e2923f5768f756445efdfdd0870060 /networking | |
parent | 6f03722448c35d825cd36a381725d6481920071d (diff) |
change osbolete sigpause() to sigsuspend()
Diffstat (limited to 'networking')
-rw-r--r-- | networking/inetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index b2b0f7309..5388bf789 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); } |