Add clarifying comment for SIGPIPE
parent
5c693677e6
commit
b2968b10e8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue