child_process: fix assertion error in spawnSync
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Mon, 21 Apr 2014 16:26:11 +0000 (01:26 +0900)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 30 Apr 2014 16:02:18 +0000 (09:02 -0700)
commitab7a3d098ddb13967014c723333c1df730da4940
treec25e7e12cb759be8b5a647a5068d706b5a328d60
parent26a1b712ec4e39cedc0b305165ce4660f47ba4d5
child_process: fix assertion error in spawnSync

When ExitCallback was not called with an error such as ENOENT in
uv_spawn, the process handle still remains refed and needs to be closed.

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
src/spawn_sync.cc
test/simple/test-child-process-spawnsync.js