SIGPIPE detection