aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-01 07:37:49 -0500
committerThanos <tmakatos@gmail.com>2020-12-01 15:41:25 +0000
commit2bf85d990fd93abd2076438040406fa33b1e1e01 (patch)
treef7042d23e58ad33305deb9a5ae20012c0a0123ae /lib
parentf931ac28f27632c5223ec7eee6795b06caa5b39f (diff)
downloadlibvfio-user-2bf85d990fd93abd2076438040406fa33b1e1e01.zip
libvfio-user-2bf85d990fd93abd2076438040406fa33b1e1e01.tar.gz
libvfio-user-2bf85d990fd93abd2076438040406fa33b1e1e01.tar.bz2
log when closing unused file descriptor
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libvfio-user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c
index 88f7cfd..2d77555 100644
--- a/lib/libvfio-user.c
+++ b/lib/libvfio-user.c
@@ -1039,6 +1039,7 @@ process_request(vfu_ctx_t *vfu_ctx)
for (i = 0; i < nr_fds; i++) {
if (fds[i] != -1) {
+ vfu_log(vfu_ctx, VFU_INF, "closing fd=%d", fds[i]);
close(fds[i]);
}
}