Revert part of previous commit as some BSDs support MSG_NOSIGNAL.