Re: [libvirt] [PATCH 2/7] util: add virGetGroupList

2013-07-25 Thread Cole Robinson
On 07/23/2013 11:03 AM, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=964358 Since neither getpwuid_r() nor initgroups() are safe to call in between fork and exec (they obtain a mutex, but if some other thread in the parent also held the mutex at the time of the fork, the

[libvirt] [PATCH 2/7] util: add virGetGroupList

2013-07-23 Thread Eric Blake
https://bugzilla.redhat.com/show_bug.cgi?id=964358 Since neither getpwuid_r() nor initgroups() are safe to call in between fork and exec (they obtain a mutex, but if some other thread in the parent also held the mutex at the time of the fork, the child will deadlock), we have to split out the