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, 1 insertions, 3 deletions
diff --git a/Src/exec.c b/Src/exec.c
index c71f3f331..fa148756b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -303,13 +303,11 @@ 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;
 }