Close directory handle when done

This commit is contained in:
Daniel P. Berrange 2008-11-30 18:37:35 +00:00
parent 5acdb5761d
commit 937c1e9e92
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Nov 30 18:36:33 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/xen_inotify.c: Close directory handle once done
processing files
Fri Nov 28 16:16:54 CET 2008 Guido Günther <agx@sigxcpu.org>
Prefer xenstore driver for listDomains, since xen HV reports ghost ids

View File

@ -395,7 +395,7 @@ xenInotifyOpen(virConnectPtr conn ATTRIBUTE_UNUSED,
return -1;
}
}
closedir(dh);
}
if ((priv->inotifyFD = inotify_init()) < 0) {