about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index fa148756b..c71f3f331 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -303,11 +303,13 @@ zfork(struct timeval *tv)
 	zerr("fork failed: %e", errno);
 	return -1;
     }
+    if (!pid) {
+	winch_unblock();
 #ifdef HAVE_GETRLIMIT
-    if (!pid)
 	/* set resource limits for the child process */
 	setlimits(NULL);
 #endif
+    }
     return pid;
 }