exec: Don't force SIGPIPE to be enabled
commit4dc539a582764fc4ae6788fc3f1dc0e6e7cd95d4
authorSteve Bennett <steveb@workware.net.au>
Wed, 21 Aug 2019 01:18:00 +0000 (21 11:18 +1000)
committerSteve Bennett <steveb@workware.net.au>
Fri, 6 Sep 2019 10:08:31 +0000 (6 20:08 +1000)
treec915f71250a4dd85dd00dea8fe32cbdbbbe5eade
parent4fd87e892eeb9bcb050e3f5bc3b5b5f92dc0f6aa
exec: Don't force SIGPIPE to be enabled

Previously SIGPIPE was set to SIG_DFL before vfork so that child processes
always had SIGPIPE enabled. This makes it impossible to disable SIGPIPE for
child processes. So don't do this. Instead allow the disposition of SIGPIPE
to be handled by the 'signal' command.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim-exec.c