tech-userlevel archive

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

Re: Remote pid with SOCK_DGRAM local socket



>> [I]t seems to me this should be part of SCM_CREDS.  Surely it
>> wouldn't be that hard to version the structure and option to do
>> that?  Or is there some reason _I_'m missing why that would be a Bad
>> Thing?
> What if more than one process has an open fd to the socket?  Which
> should it give?

The one which did the send, of course.

You have exactly the same issue for the information SCM_CREDS already
carries; a quick look at the code makes me think the issue is resolved
this way already for that data.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index