Skip to contentSkip to conversation

Fix qemu_event_init

PATCH In review Jan Kiszka 2 participants 2 messages Apr 28, 2009 – Apr 29, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Fix qemu_event_init

Falling through to "fail" made qemu_event_init() close the pipe fds immediately again, breaking timer event notification.

---

 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
vl.c +2 -0
index a210b6c..ac4b32f 100644
@@ -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]);
#1 lore raw
Quoted 4 lines · Jan Kiszka

Falling through to "fail" made qemu_event_init() close the pipe fds
immediately again, breaking timer event notification.

This fixed also Sparc boot without a CD or disk. Thanks, applied.