qemu-timer: reinitialize timers after fork
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 Nov 2012 14:43:22 +0000 (15:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 2 Nov 2012 18:07:54 +0000 (13:07 -0500)
commitc8122c35e611385b31e2d8ccb059d0687540244a
treee6411bce103fe07ccae80e7060ba93c3c6db73f5
parentc166cb72f1676855816340666c3b618beef4b976
qemu-timer: reinitialize timers after fork

Timers are not inherited by the child of a fork(2), so just use
pthread_atfork to reinstate them after daemonize.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-timer.c