vl.c: Guard against GThread double-initialization
commitdb529aabfac17201d3647384abf89fc7f272b493
authorAndreas Färber <andreas.faerber@web.de>
Mon, 31 Oct 2011 18:14:56 +0000 (31 19:14 +0100)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 1 Nov 2011 19:41:06 +0000 (1 20:41 +0100)
treecbdf7ccbeb66de77059de7b28332ef70435dd412
parent351f1bf6fc9f02cd2ef341f853f7bb55d05974ec
vl.c: Guard against GThread double-initialization

GThread-ERROR **: GThread system may only be initialized once.
aborting...

Making the g_thread_init() call in vl.c conditional resolves an abort on
Mac OS X, where coroutine-gthread.c seems to call it before vl.c.

Reported-by: Juan Pineda <juan@logician.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Cc: Daniel P. Berrange <berrange@redhat.com>
vl.c