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