]> Git Repo - qemu.git/blobdiff - util/event_notifier-posix.c
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
[qemu.git] / util / event_notifier-posix.c
index 7e40252ade44936352f5d7e13b5de2fb089f70ae..73c4046b587184f9110fa1a1e4d6a974f3512c03 100644 (file)
@@ -14,7 +14,6 @@
 #include "qemu-common.h"
 #include "qemu/cutils.h"
 #include "qemu/event_notifier.h"
-#include "sysemu/char.h"
 #include "qemu/main-loop.h"
 
 #ifdef CONFIG_EVENTFD
@@ -81,8 +80,10 @@ void event_notifier_cleanup(EventNotifier *e)
 {
     if (e->rfd != e->wfd) {
         close(e->rfd);
+        e->rfd = -1;
     }
     close(e->wfd);
+    e->wfd = -1;
 }
 
 int event_notifier_get_fd(const EventNotifier *e)
This page took 0.023638 seconds and 4 git commands to generate.