Message ID | 87bouxd0w3.fsf@skywalker.in.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/iohandler.c b/iohandler.c index 5ef66fb..aaeb20d 100644 --- a/iohandler.c +++ b/iohandler.c @@ -121,7 +121,7 @@ int qemu_set_fd_handler(int fd, g_source_remove(tramp->tag); } - if (opaque) { + GIOCondition cond = 0; tramp->fd_read = fd_read; @@ -138,7 +138,6 @@ int qemu_set_fd_handler(int fd, tramp->chan = g_io_channel_unix_new(fd); tramp->tag = g_io_add_watch(tramp->chan, cond, fd_trampoline, tramp); - } return 0; }