Re: [libvirt] PATCH: 2/5: Fix signal handler race condition

2008-08-20 Thread Daniel P. Berrange
On Tue, Aug 19, 2008 at 06:25:01PM +0200, Jim Meyering wrote: Daniel P. Berrange [EMAIL PROTECTED] wrote: This is the same patch from yesterday to fix the signal handler race condition. We block signals before doing a fork(), and then in the child reset all signal handlers before finally

Re: [libvirt] PATCH: 2/5: Fix signal handler race condition

2008-08-19 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: This is the same patch from yesterday to fix the signal handler race condition. We block signals before doing a fork(), and then in the child reset all signal handlers before finally unblocking all signals. The parent will restore its original signal

Re: [libvirt] PATCH: 2/5: Fix signal handler race condition

2008-08-13 Thread Daniel P. Berrange
This is the same patch from yesterday to fix the signal handler race condition. We block signals before doing a fork(), and then in the child reset all signal handlers before finally unblocking all signals. The parent will restore its original signal mask after fork. I've fixed the incorrect