From 265f55fd58613ba968ced4ecc39c9ab77b0fb0cf Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 7 Apr 2000 15:40:21 +0000 Subject: 10582: Apply STTY only to process group leaders. --- Src/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/exec.c') 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 */ -- cgit 1.4.1