diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-07 15:40:21 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-07 15:40:21 +0000 |
| commit | 265f55fd58613ba968ced4ecc39c9ab77b0fb0cf (patch) | |
| tree | dd73152ab148011fa0b11ead017467c41b8fa1e8 | |
| parent | 10562, 10581: Complete .src.rpm after rpm --rebuild; note fixed bug; typo. (diff) | |
| download | zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar.gz zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar.bz2 zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar.lz zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar.xz zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.tar.zst zsh-265f55fd58613ba968ced4ecc39c9ab77b0fb0cf.zip | |
10582: Apply STTY only to process group leaders.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | Src/exec.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,7 @@ 2000-04-07 Bart Schaefer <schaefer@zsh.org> + * 10582: Src/exec.c: Apply STTY only to process group leaders. + * 10581: Etc/BUGS, Src/Modules/zpty.c: Note a fixed bug; typo. * Chmouel Boudjnah: 10562: Completion/Linux/_rpm: Complete diff --git a/Src/exec.c b/Src/exec.c index 79dca611d..d06821e76 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -458,7 +458,8 @@ execute(Cmdnam not_used_yet, int dash) /* If the parameter STTY is set in the command's environment, * * we first run the stty command with the value of this * * parameter as it arguments. */ - if (!exargs && (s = zgetenv("STTY")) && isatty(0)) { + if (!exargs && (s = zgetenv("STTY")) && isatty(0) && + (GETPGRP() == getpid())) { char *t; exargs = args; /* this prevents infinite recursion */ |
