Commit a7e21219b0ec6991aa90c18cfde4d6890710bf6d
Committed by
Blue Swirl
1 parent
2d3eb7bf
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>
Showing
1 changed file
with
2 additions
and
0 deletions
vl.c
| @@ -3713,6 +3713,8 @@ static int qemu_event_init(void) | @@ -3713,6 +3713,8 @@ static int qemu_event_init(void) | ||
| 3713 | (void *)(unsigned long)fds[0]); | 3713 | (void *)(unsigned long)fds[0]); |
| 3714 | 3714 | ||
| 3715 | io_thread_fd = fds[1]; | 3715 | io_thread_fd = fds[1]; |
| 3716 | + return 0; | ||
| 3717 | + | ||
| 3716 | fail: | 3718 | fail: |
| 3717 | close(fds[0]); | 3719 | close(fds[0]); |
| 3718 | close(fds[1]); | 3720 | close(fds[1]); |