mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-11 08:21:13 +01:00
10582: Apply STTY only to process group leaders.
This commit is contained in:
parent
38cce57dd7
commit
265f55fd58
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
2000-04-07 Bart Schaefer <schaefer@zsh.org>
|
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.
|
* 10581: Etc/BUGS, Src/Modules/zpty.c: Note a fixed bug; typo.
|
||||||
|
|
||||||
* Chmouel Boudjnah: 10562: Completion/Linux/_rpm: Complete
|
* Chmouel Boudjnah: 10562: Completion/Linux/_rpm: Complete
|
||||||
|
|
|
@ -458,7 +458,8 @@ execute(Cmdnam not_used_yet, int dash)
|
||||||
/* If the parameter STTY is set in the command's environment, *
|
/* If the parameter STTY is set in the command's environment, *
|
||||||
* we first run the stty command with the value of this *
|
* we first run the stty command with the value of this *
|
||||||
* parameter as it arguments. */
|
* parameter as it arguments. */
|
||||||
if (!exargs && (s = zgetenv("STTY")) && isatty(0)) {
|
if (!exargs && (s = zgetenv("STTY")) && isatty(0) &&
|
||||||
|
(GETPGRP() == getpid())) {
|
||||||
char *t;
|
char *t;
|
||||||
|
|
||||||
exargs = args; /* this prevents infinite recursion */
|
exargs = args; /* this prevents infinite recursion */
|
||||||
|
|
Loading…
Reference in a new issue