diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -112,6 +112,10 @@ mysignal(int sig, mysig_t act) | |||
112 | if (sig == SIGCHLD) | 112 | if (sig == SIGCHLD) |
113 | sa.sa_flags |= SA_RESTART; | 113 | sa.sa_flags |= SA_RESTART; |
114 | #endif | 114 | #endif |
115 | #ifdef SA_INTERRUPT | ||
116 | if (sig == SIGCHLD) | ||
117 | sa.sa_flags |= SA_INTERRUPT; | ||
118 | #endif | ||
115 | sa.sa_handler = act; | 119 | sa.sa_handler = act; |
116 | if (sigaction(sig, &sa, NULL) == -1) | 120 | if (sigaction(sig, &sa, NULL) == -1) |
117 | return (mysig_t) -1; | 121 | return (mysig_t) -1; |