summaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-01-09 13:33:51 -0800
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-01-09 14:01:53 -0800
commit270c2deb84b04b508c9d90f58684ee5bf7b3dbca (patch)
tree51d482fcf534e401a353ba4bee6a592aed450d46 /src/node.cc
parentfc7e217a3001bccc15a8a2026d4d6e60d73e72f2 (diff)
downloadnode-270c2deb84b04b508c9d90f58684ee5bf7b3dbca.tar.gz
src: OnFatalError handler must abort()
We are in an unrecoverable state if v8 throws a FatalError, actually ask the operating system to dump core in this case. Fixes #6836
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index 47a7d5e5c..a18e0d89d 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1914,7 +1914,7 @@ static void OnFatalError(const char* location, const char* message) {
} else {
fprintf(stderr, "FATAL ERROR: %s\n", message);
}
- exit(5);
+ abort();
}
void FatalException(TryCatch &try_catch) {