SIG_IGN for SIGPIPE seems to be working (I must have missed something, but I knew it should work)
Thread-based blocking for SIGPIPE has been commented out.