Fix a nit in my previous commit: make SIGHUP and SIGCHLD restartable

as they ought to be.  The description of SA_RESTART was a little
unobvious to me in the man page, so i missed it.  Thanks to Bruce for
spotting this.

Submitted by:	bde
This commit is contained in:
joerg 2000-02-29 08:02:29 +00:00
parent 72dbae65b9
commit 7d18be033d

View File

@ -382,7 +382,7 @@ main(argc, argv)
sigaddset(&mask, SIGHUP);
sact.sa_handler = reapchild;
sact.sa_mask = mask;
sact.sa_flags = 0;
sact.sa_flags = SA_RESTART;
(void)sigaction(SIGCHLD, &sact, NULL);
(void)signal(SIGALRM, domark);
(void)signal(SIGPIPE, SIG_IGN); /* We'll catch EPIPE instead. */
@ -460,7 +460,7 @@ main(argc, argv)
sigaddset(&mask, SIGCHLD);
sact.sa_handler = init;
sact.sa_mask = mask;
sact.sa_flags = 0;
sact.sa_flags = SA_RESTART;
(void)sigaction(SIGHUP, &sact, NULL);
tvp = &tv;