generic/397: be compatible with ignored SIGPIPE