summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-05-04 10:41:56 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-05-04 10:41:56 -0700
commitb6c5cf60b7e4c4746e187056a8f2a702a28aa176 (patch)
treec1d166ef2480bddb9474f8fbcef84256fc79a7a6
parentd9882395e2ceb0274e15a3ba80df900d1e527c0d (diff)
downloadnodejs-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.cc8
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