mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
zsh-workers/9692
This commit is contained in:
parent
dd46a90d0c
commit
376c6e8df4
1 changed files with 1 additions and 2 deletions
|
@ -399,10 +399,8 @@ init_io(void)
|
||||||
#ifdef JOB_CONTROL
|
#ifdef JOB_CONTROL
|
||||||
/* If interactive, make the shell the foreground process */
|
/* If interactive, make the shell the foreground process */
|
||||||
if (opts[MONITOR] && interact && (SHTTY != -1)) {
|
if (opts[MONITOR] && interact && (SHTTY != -1)) {
|
||||||
attachtty(GETPGRP());
|
|
||||||
if ((mypgrp = GETPGRP()) > 0) {
|
if ((mypgrp = GETPGRP()) > 0) {
|
||||||
while ((ttpgrp = gettygrp()) != -1 && ttpgrp != mypgrp) {
|
while ((ttpgrp = gettygrp()) != -1 && ttpgrp != mypgrp) {
|
||||||
sleep(1);
|
|
||||||
mypgrp = GETPGRP();
|
mypgrp = GETPGRP();
|
||||||
if (mypgrp == gettygrp())
|
if (mypgrp == gettygrp())
|
||||||
break;
|
break;
|
||||||
|
@ -413,6 +411,7 @@ init_io(void)
|
||||||
opts[MONITOR] = 0;
|
opts[MONITOR] = 0;
|
||||||
} else
|
} else
|
||||||
opts[MONITOR] = 0;
|
opts[MONITOR] = 0;
|
||||||
|
attachtty(GETPGRP());
|
||||||
#else
|
#else
|
||||||
opts[MONITOR] = 0;
|
opts[MONITOR] = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue