[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH libvirt-python 14/17] Remove use of VIR_FORCE_CLOSE



From: "Daniel P. Berrange" <berrange redhat com>

Replace VIR_FORCE_CLOSE with plain close()

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 libvirt-lxc-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-lxc-override.c b/libvirt-lxc-override.c
index 6f88d85..bd7b6ce 100644
--- a/libvirt-lxc-override.c
+++ b/libvirt-lxc-override.c
@@ -93,7 +93,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
 
 error:
     for (i = 0; i < c_retval; i++) {
-        VIR_FORCE_CLOSE(fdlist[i]);
+        close(fdlist[i]);
     }
     free(fdlist);
     return VIR_PY_NONE;
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]