Skip to content

Commit

Permalink
Ignore SIGPIPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 4, 2010
1 parent d988239 commit b6c5cf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6c5cf6

Please sign in to comment.