On Mon, Oct 12, 2009 at 12:10:43PM -0400, Dmitri Pal wrote:
> Simo Sorce wrote:
> > 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.
> >
> >   
> Yes this way it is standard. I thought you wanted to pass a socket
> between processes later after fork.
> But here is the question. If you have multiple children writing to the
> same fd at the same time how you then sort which one has written what.
> Would it be better to have a log per child process instead and have a
> pid appended to the name of the log file than all output in one file mixed?
> It is usually hard to read and debug when everything is mixed in one file.
> 
> 
> -- 
> Thank you,
> Dmitri Pal
> 

Currently I'll use the pid in the starting block of the log messsage.

bye,
Sumit
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to