diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-05-04 10:41:56 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-05-04 10:41:56 -0700 |
commit | b6c5cf60b7e4c4746e187056a8f2a702a28aa176 (patch) | |
tree | c1d166ef2480bddb9474f8fbcef84256fc79a7a6 | |
parent | d9882395e2ceb0274e15a3ba80df900d1e527c0d (diff) | |
download | nodejs-b6c5cf60b7e4c4746e187056a8f2a702a28aa176.tar.gz nodejs-b6c5cf60b7e4c4746e187056a8f2a702a28aa176.tar.bz2 nodejs-b6c5cf60b7e4c4746e187056a8f2a702a28aa176.zip |
Ignore SIGPIPE
Was inadvertently removed with evcom,
http://github.com/ry/node/commit/c72967d3351c4a28c3f2434748598017aa0126d5#L10L1900
-rw-r--r-- | src/node.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc index 77e80e061..a4af85707 100644 --- a/src/node.cc +++ b/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 |