Permalink
Browse files

Ignore SIGPIPE

1 parent d988239 commit b6c5cf60b7e4c4746e187056a8f2a702a28aa176 @ry ry committed May 4, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/node.cc
View
@@ -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

0 comments on commit b6c5cf6

Please sign in to comment.