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:
aliguori 2008-09-22 14:49:01 +00:00
parent e5fd43a926
commit ad02ad6fda
1 changed files with 3 additions and 0 deletions

View File

@ -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 */