diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
commit | b09922bb063ddf44c7850b182fec4795fbe1ae90 (patch) | |
tree | 8a6dfa5ef6c6012753c0dc5a6e93e6f820b51a58 /Src/init.c | |
parent | 346825df86466cf151be61b9429ef2c1734e66ea (diff) | |
download | zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.gz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.xz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.zip |
zsh-3.1.5-pws-23 zsh-3.1.5-pws-23
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Src/init.c b/Src/init.c index 51c2b88a5..10286ea87 100644 --- a/Src/init.c +++ b/Src/init.c @@ -390,16 +390,7 @@ init_io(void) #ifdef JOB_CONTROL /* If interactive, make the shell the foreground process */ if (opts[MONITOR] && interact && (SHTTY != -1)) { - /* Since we now sometimes execute programs in the process group - * of the parent shell even when using job-control, we have to - * make sure that we run in our own process group. Otherwise if - * we are called from a program that doesn't put us in our own - * group a SIGTSTP that we ignore might stop our parent process. - * Instead of the two calls below we once had: - * attachtty(GETPGRP()); - */ - attachtty(getpid()); - setpgrp(0L, 0L); + attachtty(GETPGRP()); if ((mypgrp = GETPGRP()) > 0) { while ((ttpgrp = gettygrp()) != -1 && ttpgrp != mypgrp) { sleep(1); |