summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-17 16:51:07 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-17 16:51:07 +0000
commit970c009b8e9a8187e06c6627c448483765c3f1c1 (patch)
tree576f57f00b4543a58a42162f4a3a076e907a7d42 /misc.c
parent6dc75f594d4e10cb2102562a944d5873dea28f7e (diff)
- (Bal) Patch for lack of RA_RESTART in misc.c for mysignal by
stevesk
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 800588af..ad6d8864 100644
--- a/misc.c
+++ b/misc.c
@@ -108,8 +108,10 @@ mysignal(int sig, mysig_t act)
memset(&sa, 0, sizeof sa);
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
+#ifdef SA_RESTART
if (sig == SIGCHLD)
sa.sa_flags |= SA_RESTART;
+#endif
sa.sa_handler = act;
if (sigaction(sig, &sa, 0) == -1)
return (mysig_t) -1;