diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-09 20:20:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-09 20:20:53 +0000 |
commit | ce4137c858d2e24cdcd341d070345b8296bd576f (patch) | |
tree | 6ca6a46ced467dda8c3fbf06b473fd4639f4aa72 | |
parent | 2d628b0bce00778423ea22ed929ba450847af4cb (diff) | |
download | zsh-ce4137c858d2e24cdcd341d070345b8296bd576f.tar.gz zsh-ce4137c858d2e24cdcd341d070345b8296bd576f.tar.xz zsh-ce4137c858d2e24cdcd341d070345b8296bd576f.zip |
Eric Blake: 27109: don't attachtty() if not interactive
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 510a02b65..ad4ffca92 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3590,7 +3590,7 @@ attachtty(pid_t pgrp) { static int ep = 0; - if (jobbing) { + if (jobbing && interact) { #ifdef HAVE_TCSETPGRP if (SHTTY != -1 && tcsetpgrp(SHTTY, pgrp) == -1 && !ep) #else |