Skip to content

Commit

Permalink
child_process: don't throw on EAGAIN
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
Charles authored and indutny committed Jun 24, 2014
1 parent c08da46 commit be8114e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,9 @@ ChildProcess.prototype.spawn = function(options) {

var err = this._handle.spawn(options);

if (err === uv.UV_EMFILE ||
// Run-time errors should emit an error, not throw an exception.
if (err === uv.UV_EAGAIN ||
err === uv.UV_EMFILE ||
err === uv.UV_ENFILE ||
err === uv.UV_ENOENT) {
process.nextTick(function() {
Expand Down

0 comments on commit be8114e

Please sign in to comment.