From 653d6a0dd95668eb3ad0d92de985cf14c1f65a8d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 11 Jul 2009 19:06:51 +0000 Subject: 27131: allow MONITOR in subshell by not closing SHTTY --- Src/exec.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 67d48b1ce..004459abf 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -931,11 +931,7 @@ entersubsh(int flags) zsh_subshell++; if ((flags & ESUB_REVERTPGRP) && getpid() == mypgrp) release_pgrp(); - if (SHTTY != -1) { - shout = NULL; - zclose(SHTTY); - SHTTY = -1; - } + shout = NULL; if (isset(MONITOR)) { signal_default(SIGTTOU); signal_default(SIGTTIN); -- cgit 1.4.1