mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
Eric Blake: 27109: don't attachtty() if not interactive
This commit is contained in:
parent
aa563b1a3f
commit
aabd747d4f
2 changed files with 12 additions and 2 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2009-07-09 Eric Blake <ebb9@byu.net>
|
||||
|
||||
* 27109: Touch up non-interactive MONITOR handling.
|
||||
Don't mess with tty when MONITOR but not interactive.
|
||||
|
||||
2009-07-09 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 27110: Src/init.c: Only turn on MONITOR if INTERACTIVE is on
|
||||
or if set explicitly.
|
||||
|
||||
2009-07-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 27100: Allow MONITOR option in non-interactive shells.
|
||||
|
@ -11916,5 +11926,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4729 $
|
||||
* $Revision: 1.4730 $
|
||||
*****************************************************
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue