Unix: Use write(3) for non-sockets when SO_NOSIGPIPE is not available