1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-09 10:01:16 +02:00

Eric Blake: 27109: don't attachtty() if not interactive

This commit is contained in:
Peter Stephenson 2009-07-09 20:20:53 +00:00
parent 2d628b0bce
commit ce4137c858

View file

@ -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