<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/test/simple/test-process-exit-code.js, branch move-debugger-tests</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>process: use exit 1 for uncaughtException</title>
<updated>2013-09-07T01:23:15+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-09-07T00:47:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=b30a03eda02477ddef2b1b16ecc8762272e3a065'/>
<id>b30a03eda02477ddef2b1b16ecc8762272e3a065</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>process: Use exit code 8 consistently</title>
<updated>2013-09-07T00:08:56+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-09-07T00:08:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=6808706c3b8baf8d4b867806acebda949f6d8f38'/>
<id>6808706c3b8baf8d4b867806acebda949f6d8f38</id>
<content type='text'>
This should always be used in the case of an uncaughtException
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should always be used in the case of an uncaughtException
</pre>
</div>
</content>
</entry>
<entry>
<title>process: Add exitCode property</title>
<updated>2013-09-06T23:51:51+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-09-06T23:46:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=a5dba82ee210685ffce17b35ff2da9cca1d268d2'/>
<id>a5dba82ee210685ffce17b35ff2da9cca1d268d2</id>
<content type='text'>
This allows one to set a specific status code, while still letting the
process exit gracefully once all async operations are completed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows one to set a specific status code, while still letting the
process exit gracefully once all async operations are completed.
</pre>
</div>
</content>
</entry>
</feed>
