mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-19 12:20:52 +01:00
zsh-3.1.5-pws-23
This commit is contained in:
parent
346825df86
commit
b09922bb06
58 changed files with 740 additions and 1490 deletions
11
Src/init.c
11
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue