fix SIGPIPE handling on subprocesses