diff options
author | jilles <jilles@FreeBSD.org> | 2012-06-08 22:54:25 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-06-08 22:54:25 +0000 |
commit | ccb8c35eab6b0cfd93a0939fbf01b0d77682dd41 (patch) | |
tree | e69912720e97e5f4d905b77e3055bdcf733bc8fa /sys/kern/subr_smp.c | |
parent | be453f58c1eab09996cfd89e3d5932cabb6581a0 (diff) | |
download | FreeBSD-src-ccb8c35eab6b0cfd93a0939fbf01b0d77682dd41.zip FreeBSD-src-ccb8c35eab6b0cfd93a0939fbf01b0d77682dd41.tar.gz |
sh: Do not assume that SIGPIPE will only kill a subshell in builtins/wait3.0
test.
POSIX says that SIGPIPE affects a process and therefore a SIGPIPE caused and
received by a subshell environment may or may not affect the parent shell
environment.
The change assumes that ${SH} is executed in a new process. This must be the
case if it contains a slash and everyone appears to do so anyway even though
POSIX might permit otherwise.
This change makes builtins/wait3.0 work in ksh93.
Diffstat (limited to 'sys/kern/subr_smp.c')
0 files changed, 0 insertions, 0 deletions