child_process: emit error on exec failure
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 21 Aug 2012 11:29:53 +0000 (13:29 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 21 Aug 2012 12:29:20 +0000 (14:29 +0200)
commit63d13e86a58b2885c388f57a53227c2a23c83b49
tree391836f3faa54c5e1905deede6e65261f5168e25
parent2cdf427dce90d258d162eb308a0685e94ea78a73
child_process: emit error on exec failure

libuv calls the exit cb with exit code == -1 when it fails to spawn the new
process. Anticipate that and emit the error on the ChildProcess object.
lib/child_process.js
src/process_wrap.cc
test/simple/test-child-process-cwd.js
test/simple/test-child-process-exec-error.js [new file with mode: 0644]