This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Description
On AIX we were seeing failures in the Node test:
simple/test-child-process-execsync.js
/bin/sh: iamabadcommand: not found.
child_process.js:1382
throw err;
^
Error: spawnSync ENOTCONN
at exports._errnoException (util.js:746:11)
at spawnSync (child_process.js:1321:20)
at execSync (child_process.js:1373:13)
....
This is also reproducible in OS X, under heavy stress in
the system. The issue is root caused by a race condition between
the parent and child where the short lived child (such as bad
command used in the test case) closed its end of the pipe
before the parent called the shutdown() on its end of the pipe.
A pull request is present in io.js on the same:
nodejs/node#1214
Request to pull this change to Node.js as well.
Thanks