]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Make it safe to call virFileWrapperFdClose() multiple times
authorAndrea Bolognani <abologna@redhat.com>
Tue, 19 Feb 2019 15:58:27 +0000 (16:58 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 25 Feb 2019 15:34:22 +0000 (16:34 +0100)
commitaa60562869dc6874d4eb45959e4c644bee009652
tree96b936c4d0fbd3985acf6692ad9f0e8dbe787070
parentd7be1b1c5e43bd5da6a8d513964ff295bd533e3c
util: Make it safe to call virFileWrapperFdClose() multiple times

We'll want to use this function in the cleanup path soon,
and in order to be able to do that we need to make sure we
can call it multiple times on the same virFileWrapperFd
without side effects.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfile.c