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 <jan.kiszka@siemens.com>
This commit is contained in:
parent
2d3eb7bfd9
commit
a7e21219b0
1 changed files with 2 additions and 0 deletions
2
vl.c
2
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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue