summaryrefslogtreecommitdiff
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c6
1 files changed, 1 insertions, 5 deletions
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);