diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2013-12-04 11:04:47 -0800 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-12-05 11:59:22 -0800 |
commit | 9ba0d905b0da23d540c23b073d794989612d4664 (patch) | |
tree | f9ea3958a58f7fe75d56c61fce74d13137726496 /lib | |
parent | 4bd5f35889ed7d52b7c9030d921a7ece6930544e (diff) | |
download | nodejs-9ba0d905b0da23d540c23b073d794989612d4664.tar.gz nodejs-9ba0d905b0da23d540c23b073d794989612d4664.tar.bz2 nodejs-9ba0d905b0da23d540c23b073d794989612d4664.zip |
lib: child_process spawn handle ENOENT correctly
child_process spawn wasn't handlig ENOENT correctly on Windows.
This is half a fix for test-child-process-cwd.js.
The other half is going into libuv.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/child_process.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/child_process.js b/lib/child_process.js index 96193a8b2..75a637e06 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -952,10 +952,7 @@ ChildProcess.prototype.spawn = function(options) { var err = this._handle.spawn(options); - if (!constants) - constants = process.binding('constants'); - - if (-err == constants.ENOENT) { + if (err == uv.UV_ENOENT) { process.nextTick(function() { self._handle.onexit(err); }); |