]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Allow virProcessSetNamespaces() to have sparse FD list
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 27 Aug 2015 00:09:54 +0000 (02:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 27 Aug 2015 13:05:51 +0000 (15:05 +0200)
commitea0486873ef586ba3a4a8d302123d829b1bcf36b
tree2934dbdda54696d4bbdf7cb8020cd1b7ea41e986
parent52970dec5b4d0fd1a9baa593b46a33bd7eeaf6b8
util: Allow virProcessSetNamespaces() to have sparse FD list

So far, the virProcessSetNamespaces() takes an array of FDs that
it tries to set namespace on. However, in the very next commit
this array may be sparse, having some -1's in it. Teach the
function to cope with that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virprocess.c