mirror of https://github.com/xemu-project/xemu.git
Do not allow AIO to be inited multiple times
This prevents two signalfd() threads from being spawned. This problem was originally spotted by Blue Swirl. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5289 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e5fd43a926
commit
ad02ad6fda
|
@ -511,6 +511,9 @@ void qemu_aio_init(void)
|
|||
{
|
||||
sigset_t mask;
|
||||
|
||||
if (aio_initialized)
|
||||
return;
|
||||
|
||||
aio_initialized = 1;
|
||||
|
||||
/* Make sure to block AIO signal */
|
||||
|
|
Loading…
Reference in New Issue