about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-09 20:20:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-09 20:20:53 +0000
commitce4137c858d2e24cdcd341d070345b8296bd576f (patch)
tree6ca6a46ced467dda8c3fbf06b473fd4639f4aa72 /Src/utils.c
parent2d628b0bce00778423ea22ed929ba450847af4cb (diff)
downloadzsh-ce4137c858d2e24cdcd341d070345b8296bd576f.tar.gz
zsh-ce4137c858d2e24cdcd341d070345b8296bd576f.tar.xz
zsh-ce4137c858d2e24cdcd341d070345b8296bd576f.zip
Eric Blake: 27109: don't attachtty() if not interactive
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
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