in reply to Re^2: wait versus close on a pipe
in thread wait versus close on a pipe

A few things: