aboutgitcodebugslistschat
path: root/doc/platform-requirements/git:/passt.top/passt
diff options
context:
space:
mode:
authorJon Maloy <jmaloy@redhat.com>2026-06-11 11:15:21 -0400
committerStefano Brivio <sbrivio@redhat.com>2026-06-12 01:02:35 +0200
commita9c61ffaf15347b8dfcc2347c5440e4b0e82333b (patch)
tree6b8b2f927ee2f336d4847ae275850f9b13c7201c /doc/platform-requirements/git:/passt.top/passt
parente1a6d9ef626aa6dbcfeef97dbbab3bd69c35b4b1 (diff)
downloadpasst-master.tar
passt-master.tar.gz
passt-master.tar.bz2
passt-master.tar.lz
passt-master.tar.xz
passt-master.tar.zst
passt-master.zip
util, passt: Close daemon-lifetime fds on exit to avoid Coverity warningHEAD2026_06_11.a9c61ffmaster
conf_open_files() opens three file descriptors (fd_tap_listen, fd_repair_listen, fd_control_listen) that are held for the entire daemon lifetime. Because no close() call exists for them anywhere, Coverity flags each as INCOMPLETE_DEALLOCATOR. This is clearly a false positive, but we still want to get rid of this warning. We now register the execution context in global area so that passt_exit() can use it to close these descriptors before calling _exit(). All exit paths (signal handler, die(), die_perror()) funnel through passt_exit(), so this covers all cases. Signed-off-by: Jon Maloy <jmaloy@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc/platform-requirements/git:/passt.top/passt')
0 files changed, 0 insertions, 0 deletions