1
0
Fork 0
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:
Bart Schaefer 2000-04-07 15:40:21 +00:00
parent 38cce57dd7
commit 265f55fd58
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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 */