Do not ignore SIGPIPE beause that is inherited by child processes and it screws up shell scripts. Instead, install a handler that does nothing.
Merge pull request #1681 from planar/fix-signal-handling

Fix handling of SIGPIPE