diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-11 19:06:51 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-11 19:06:51 +0000 |
commit | 653d6a0dd95668eb3ad0d92de985cf14c1f65a8d (patch) | |
tree | a79fc23a381e8103056906581334b474da9c30ab /Src/exec.c | |
parent | bdfebe3e3262eaaf83e89c9356c7c46a21181a6a (diff) | |
download | zsh-653d6a0dd95668eb3ad0d92de985cf14c1f65a8d.tar.gz zsh-653d6a0dd95668eb3ad0d92de985cf14c1f65a8d.tar.xz zsh-653d6a0dd95668eb3ad0d92de985cf14c1f65a8d.zip |
27131: allow MONITOR in subshell by not closing SHTTY
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 6 |
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); |