]> xenbits.xensource.com Git - libvirt.git/commit
vircommand: Parse /dev/fd on *BSD-like systems when looking for opened FDs
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 Aug 2023 06:49:27 +0000 (08:49 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 Sep 2024 12:50:43 +0000 (14:50 +0200)
commit308ec0fb2c77f4867179f00c628f05d1d784f370
tree79d728657d2e54bc3e2f64b5e214880a82cf022b
parent4df8dc576fd14fcb7b3203622fbf3f733d97dff6
vircommand: Parse /dev/fd on *BSD-like systems when looking for opened FDs

On BSD-like systems "/dev/fd" serves the same purpose as
"/proc/self/fd". And since procfs is usually not mounted, on such
systems we can use "/dev/fd" instead.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/518
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/util/vircommand.c