about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2013-05-05 11:24:31 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2013-05-05 11:27:39 +0200
commitf8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6 (patch)
tree432de11f898481d24a2e55021ab1b17c41741dfc
parent3d6d6136e201edf03eb31887a49fbde4b3f0d0e8 (diff)
downloadzsh-f8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6.tar.gz
zsh-f8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6.tar.xz
zsh-f8ab02ad5f4226e46ab54e681a3e0404fdc1a9a6.zip
31372: Do not block SIGWINCH for child processes
Something similar may also be needed in the zpty and clone modules.
-rw-r--r--ChangeLog4
-rw-r--r--Src/exec.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 821563406..736bbd76d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-05  Bart Schaefer  <schaefer@zsh.org>
+
+	* 31372: Src/exec.c: Do not block SIGWINCH for child processes
+
 2013-05-05  Kenyon Ralph  <kenyon@kenyonralph.com>
 
 	* 31371: Completion/Linux/Command/_brctl: _brctl: update brctl
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;
 }