]> git.proxmox.com Git - qemu.git/blobdiff - qemu-char.c
Move cpu_has_work and cpu_pc_from_tb to cpu.h
[qemu.git] / qemu-char.c
index eaf6571ac8a911a504b570e2677f25c7cf9db700..fb13b28454cd1cda24f52b0ed9f0ebb635e07b13 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <unistd.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/time.h>
@@ -197,7 +196,7 @@ void qemu_chr_add_handlers(CharDriverState *s,
                            IOEventHandler *fd_event,
                            void *opaque)
 {
-    if (!opaque) {
+    if (!opaque && !fd_can_read && !fd_read && !fd_event) {
         /* chr driver being released. */
         ++s->avail_connections;
     }