tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Socket credentials (take 2)



YAMAMOTO Takashi <yamt <at> mwd.biglobe.ne.jp> writes:
> i doubt if sodisconnect is the right place to free the credential.
> (i think i said this before.)
> is sodisconnect called for all sockets, even for non-connected ones?
> are you sure that so_cred will never be used after sodisconnect?

I free the so_cred late in sofree().  That seems like the most logical place
to release the credentials.

I think I got a panic because of sleeping in interrupt context from that once,
but I haven't figured out how to reproduce that yet.

--chris






Home | Main Index | Thread Index | Old Index