* Ralf Wildenhues wrote on Wed, Jul 21, 2010 at 06:24:04AM CEST: > > +Fortunately, an attempt to close an already closed file descriptor will > > +portably succeed. > > This is not true. ksh93, for example, will happily fail to close a > closed fd. You need to try in non-interactive mode.
Hmm, maybe I was confused in testing this. Nonetheless, the at_first issue in my patch is still an improvement, and your patch should also close all fds for the first worker thread, I guess. Cheers, Ralf
