Browse Source

child_process: don't throw on EAGAIN

Signed-off-by: Fedor Indutny <fedor@indutny.com>
archived-io.js-v0.10
Charles 11 years ago
committed by Fedor Indutny
parent
commit
be8114e5c5
  1. 4
      lib/child_process.js

4
lib/child_process.js

@ -1114,7 +1114,9 @@ ChildProcess.prototype.spawn = function(options) {
var err = this._handle.spawn(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_ENFILE ||
err === uv.UV_ENOENT) { err === uv.UV_ENOENT) {
process.nextTick(function() { process.nextTick(function() {

Loading…
Cancel
Save