You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
go version
)?master
go env
)?tried on plan9_arm, linux_amd64, and darwin_amd64
In
syscall.forkAndExecInChild
, a comment don't stomp on pipe refers to avoiding a collision betweennextfd
(a temporary file descriptor used for permuting the order of fds for the child) andpipe
(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: