mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
zsh-workers/9694
This commit is contained in:
parent
c44ff62d89
commit
3fa0e7d4d3
1 changed files with 3 additions and 1 deletions
|
@ -401,7 +401,10 @@ init_io(void)
|
|||
if (opts[MONITOR] && interact && (SHTTY != -1)) {
|
||||
if ((mypgrp = GETPGRP()) > 0) {
|
||||
while ((ttpgrp = gettygrp()) != -1 && ttpgrp != mypgrp) {
|
||||
sleep(1); /* give parent time to change pgrp */
|
||||
mypgrp = GETPGRP();
|
||||
if (mypgrp == mypid)
|
||||
attachtty(mypgrp);
|
||||
if (mypgrp == gettygrp())
|
||||
break;
|
||||
killpg(mypgrp, SIGTTIN);
|
||||
|
@ -411,7 +414,6 @@ init_io(void)
|
|||
opts[MONITOR] = 0;
|
||||
} else
|
||||
opts[MONITOR] = 0;
|
||||
attachtty(GETPGRP());
|
||||
#else
|
||||
opts[MONITOR] = 0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue