[SSSD] [PATCH] enable debugging of krb5_child

Dmitri Pal dpal at redhat.com
Mon Oct 12 16:10:43 UTC 2009


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

Engineering Manager IPA project,
Red Hat Inc.


-------------------------------
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/




More information about the sssd-devel mailing list