This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

use process.abort when available

  • Loading branch information...
davepacheco committed Mar 8, 2012
1 parent 9557229 commit 427589fb437e7285ac269da879a7acf73a671b25
Showing with 8 additions and 1 deletion.
  1. +7 −0 lib/panic.js
  2. +1 −1 package.json
View
@@ -78,6 +78,13 @@ function caPanic(str, err)
caPanicWriteSafeError('error during panic', ex);
}
/*
* If available, use process.abort() to dump core. Some systems
* (notably illumos-based systems) can debug Node core dumps.
*/
if (process.abort)
process.abort();
process.exit(1);
}
View
@@ -1,6 +1,6 @@
{
"name": "panic",
"version": "0.1.1",
"version": "0.1.2",
"description": "Postmortem debugging facility",
"author": "Joyent (joyent.com)",
"engines": { "node": "*" },

0 comments on commit 427589f

Please sign in to comment.