in reply to Thread and exec

The parent will not be free to continue until all connections (pipes, sockets, filehandles etc.) inherited by the child from the parent are closed. The child has to close those - they will typically just be STDIN and STDOUT in the context of a web application.

One world, one people