[libvirt] [PATCH] rpc: Retrieve peer PID via new getsockopt() for Mac
Eric Blake
eblake at redhat.com
Tue Oct 22 15:47:23 UTC 2013
On 10/21/2013 03:59 PM, Doug Goldstein wrote:
> While LOCAL_PEERCRED on the BSDs does not return the pid information of
> the peer, Mac OS X 10.8 added LOCAL_PEERPID to retrieve the pid so we
> should use that when its available to get that information.
> ---
> + if (getsockopt(sock->fd, VIR_SOL_PEERCRED, LOCAL_PEERPID, pid, &cr_len) < 0) {
> + /* Ensure this is set to something sane as there are no guarentees
s/guarentees/guarantees/
> + * as to what its set to now.
s/its/it's/
ACK with the grammar fix.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131022/fe32fbb1/attachment-0001.sig>
More information about the libvir-list
mailing list