1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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 Wunsch 2000-02-29 08:02:29 +00:00
parent fe3a7a1941
commit debf48c59c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57609

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;