Add clarifying comment for SIGPIPE

master
Nick Krichevsky 2018-09-10 00:28:30 -04:00
parent 5c693677e6
commit b2968b10e8
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ bool running = true;
void handle_signal(int signal) {
if (signal == SIGPIPE) {
// We must ignore SIGPIPEs such that EPIPEs can be returned from socket read/write functions.
return;
}
if (signal == SIGINT || signal == SIGTERM) {