On Mon, 2009-10-12 at 10:47 -0400, Dmitri Pal wrote:
> > Just pass the fd to the client, it's simple and
doesn't require us to
> > replicate logic to open/close debug files in the children.
>
> I didn't realize you could do that.
>
I am not sure this approach is portable.
I know Solaris and Linux can do it.
I am not sure HP-UX can.
We are not *transferring* a socket between process, we are merely not
closing it on fork/exec. It is standard posix behavior that file
descriptors are inherited by children afaik.
Simo.
--
Simo Sorce * Red Hat, Inc * New York