child_process: don't throw on EAGAIN

Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Charles 2014-06-18 00:44:11 +02:00 committed by Fedor Indutny
parent c08da463ad
commit be8114e5c5

View File

@ -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() {