ahoward/open4 — pull request #10 by ramr (2011-11-18 00:44:39+00:00)
Title: optional parameter closefds to not propogate fds from parent to forked process

Hi ahoward,
Ran into an issue where fds from the parent process where handed off to the child process -- this was
not the intent in our usage -- so I added an optional parameter closefds to close all fds in the forked/child
process. This causes fds from parent to get propogated to the forked process [which was not intended in
this particular case]. Pass true to close all fds - the value currently defaults to false so that all tests
can pass.

Thanks,

Ram//
main(O,s){s=--O;10>4*s)*(O++?-1:1):10)&&\
main(++O,s++);}