in reply to Re^2: Sharing STDIN after fork
in thread Sharing STDIN after fork

No, both processes are almost identical - the only difference when they start out is the result of the call to [func://fork].

Usually, the web server will wait for the original program, not the forked copy, to finish before considering the HTTP call complete, so you might want to put long-running stuff into the child. The child process is the one with a zero from fork().