diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-12-01 07:37:49 -0500 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2020-12-01 15:41:25 +0000 |
commit | 2bf85d990fd93abd2076438040406fa33b1e1e01 (patch) | |
tree | f7042d23e58ad33305deb9a5ae20012c0a0123ae /lib | |
parent | f931ac28f27632c5223ec7eee6795b06caa5b39f (diff) | |
download | libvfio-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.c | 1 |
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]); } } |