summaryrefslogtreecommitdiff
path: root/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'wait.c')
-rw-r--r--wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wait.c b/wait.c
index b36c93f..d799494 100644
--- a/wait.c
+++ b/wait.c
@@ -137,7 +137,7 @@ static pid_t rc_wait(int *stat) {
gotint = 0;
old = signal(SIGINT, gotint_handler);
- if (!setjmp(slowbuf.j)) {
+ if (!sigsetjmp(slowbuf.j, 1)) {
slow = TRUE;
if (!interrupt_happened)
r = wait(stat);