summaryrefslogtreecommitdiff
path: root/test/simple/test-process-exit-code.js
Commit message (Collapse)AuthorAgeFilesLines
* process: allow changing `exitCode` in `on('exit')`Fedor Indutny2014-02-091-0/+11
| | | | fix #7081
* process: use exit 1 for uncaughtExceptionisaacs2013-09-061-3/+3
| | | | | | | | | | | | Since it is Unix tradition to use exit code 1 for general-purpose script bail-out, and the way of doing that in Node is to throw an exception and not catch it, it makes the most sense to exit with 1 when an exception goes uncaught. Move the `Invalid Argument` exit to 9, so that it's something specific, and clear that it's a node internal error. Also, document the exit codes that we use.
* process: Use exit code 8 consistentlyisaacs2013-09-061-1/+16
| | | | This should always be used in the case of an uncaughtException
* process: Add exitCode propertyisaacs2013-09-061-0/+77
This allows one to set a specific status code, while still letting the process exit gracefully once all async operations are completed.