about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2013-05-05 20:30:51 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2013-05-05 20:33:07 +0200
commit9604bc9a9f6a4f308fe8e4e5a11247b90a9d61b7 (patch)
tree206b72aa2def033522acadabb390a1af69f7e9f6
parentf8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6 (diff)
downloadzsh-9604bc9a9f6a4f308fe8e4e5a11247b90a9d61b7.tar.gz
zsh-9604bc9a9f6a4f308fe8e4e5a11247b90a9d61b7.tar.xz
zsh-9604bc9a9f6a4f308fe8e4e5a11247b90a9d61b7.zip
Revert "31372: Do not block SIGWINCH for child processes"
This reverts commit f8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6.

As Bart suggested in 31375.
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 736bbd76d..a86bf3514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-05  Frank Terbeck  <ft@bewatermyfriend.org>
+
+	* unposted: Src/exec.c: Revert "31372: Do not block SIGWINCH for
+	child processes" as suggested by Bart.
+
 2013-05-05  Bart Schaefer  <schaefer@zsh.org>
 
 	* 31372: Src/exec.c: Do not block SIGWINCH for child processes
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;
 }