In syscall.forkAndExecInChild, a comment don't stomp on pipe refers to avoiding a collision between nextfd (a temporary file descriptor used for permuting the order of fds for the child) and pipe (the file descriptor of the pipe used to report exec status back to the parent). Unfortunately the code doesn't quite live up to the promise of the comment.
Moving the referenced code to a more strategic place in the loop body is probably the tidiest correction. A suggested CL will follow shortly.
The text was updated successfully, but these errors were encountered: