From: Jan Kiszka Date: Wed, 29 Apr 2009 18:38:28 +0000 (+0000) Subject: Fix qemu_event_init X-Git-Tag: v0.11.0-rc0~744 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7e21219b0ec6991aa90c18cfde4d6890710bf6d;p=thirdparty%2Fqemu.git Fix qemu_event_init Falling through to "fail" made qemu_event_init() close the pipe fds immediately again, breaking timer event notification. Signed-off-by: Jan Kiszka --- diff --git a/vl.c b/vl.c index a210b6cdd22..ac4b32fdeda 100644 --- a/vl.c +++ b/vl.c @@ -3713,6 +3713,8 @@ static int qemu_event_init(void) (void *)(unsigned long)fds[0]); io_thread_fd = fds[1]; + return 0; + fail: close(fds[0]); close(fds[1]);