Browse Source

Ignore SIGPIPE

Was inadvertently removed with evcom,
c72967d335 (L10L1900)
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b6c5cf60b7
  1. 8
      src/node.cc

8
src/node.cc

@ -2017,6 +2017,14 @@ int main(int argc, char *argv[]) {
return 1;
}
// Ignore SIGPIPE
struct sigaction sa;
bzero(&sa, sizeof(sa));
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, NULL);
// Initialize the default ev loop.
#ifdef __sun
// TODO(Ryan) I'm experiencing abnormally high load using Solaris's

Loading…
Cancel
Save