diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-12 13:41:48 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-12 13:41:48 +0000 |
commit | 376c6e8df45c00d8cc69cb1f4f43a0c2151c5a3a (patch) | |
tree | bc42111b402050d73daea7d7cbcd15a43a131dc8 /Src | |
parent | dd46a90d0c4488b43da3aa2de057bb24e7b8af21 (diff) | |
download | zsh-376c6e8df45c00d8cc69cb1f4f43a0c2151c5a3a.tar.gz zsh-376c6e8df45c00d8cc69cb1f4f43a0c2151c5a3a.tar.xz zsh-376c6e8df45c00d8cc69cb1f4f43a0c2151c5a3a.zip |
zsh-workers/9692
Diffstat (limited to 'Src')
-rw-r--r-- | Src/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/init.c b/Src/init.c index 0dc063f7b..08fd2a4c4 100644 --- a/Src/init.c +++ b/Src/init.c @@ -399,10 +399,8 @@ init_io(void) #ifdef JOB_CONTROL /* If interactive, make the shell the foreground process */ if (opts[MONITOR] && interact && (SHTTY != -1)) { - attachtty(GETPGRP()); if ((mypgrp = GETPGRP()) > 0) { while ((ttpgrp = gettygrp()) != -1 && ttpgrp != mypgrp) { - sleep(1); mypgrp = GETPGRP(); if (mypgrp == gettygrp()) break; @@ -413,6 +411,7 @@ init_io(void) opts[MONITOR] = 0; } else opts[MONITOR] = 0; + attachtty(GETPGRP()); #else opts[MONITOR] = 0; #endif |