From ce4137c858d2e24cdcd341d070345b8296bd576f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 9 Jul 2009 20:20:53 +0000 Subject: Eric Blake: 27109: don't attachtty() if not interactive --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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 -- cgit 1.4.1