On Fri, Mar 7, 2014 at 12:17 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> Forking twice is ok as well, as long as you just use _exit() after the
> fork. The thing is that you shouldn't run any nontrivial code in the
> fork, as long as you're connected to the original environment (fd's,
> memory mappings and so forth).
Just to be clear, what do you mean by "nontrivial code"? Do you mean
C library calls, other than fork/exec/_exit?
Pete