From b09922bb063ddf44c7850b182fec4795fbe1ae90 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 27 Jun 1999 06:54:32 +0000 Subject: zsh-3.1.5-pws-23 --- Src/init.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Src/init.c') 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); -- cgit 1.4.1