On Sun, Feb 11, 2007 at 08:08:25PM +0100, Denis Vlasenko wrote: >On Sunday 11 February 2007 19:54, Alexander Griesser wrote: >- dup2(inFd, 0); // replace stdin with the pipe >- dup2(outFd, 1); // replace stdout with the pipe >+ if (config->accepted_socket > 1) >+ close(config->accepted_socket); Didn't we have an close_nonstdin?