Re: [libvirt] [PATCH 3/7] util: make virSetUIDGID async-signal-safe

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 > > POSIX states that multi-threaded apps should not use functions > that are not async-signal-safe between fork and exec, yet we > were using getpwuid_r and initgroups. Although rare, it is > possible

[libvirt] [PATCH 3/7] util: make virSetUIDGID async-signal-safe

2013-07-23 Thread Eric Blake
https://bugzilla.redhat.com/show_bug.cgi?id=964358 POSIX states that multi-threaded apps should not use functions that are not async-signal-safe between fork and exec, yet we were using getpwuid_r and initgroups. Although rare, it is possible to hit deadlock in the child, when it tries to grab a