bahamas10/node-exec — pull request #9 by kkirby (2014-12-15 16:38:41+00:00)
Title: Fixed a bug with stdio pipes

If you forwarded the stdio streams, then they would be undefined, causing exec to throw an exception since child.std... would be undefined. To fix this, I added a check to see if the streams exist before doing anything to them.

Code to reproduce:

exec(
['ls'],
{
stdio: 'inherit'
},
function(){}
);