]> git.ipfire.org Git - thirdparty/libvirt.git/commit
command: check for fork error before closing fd
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 30 May 2012 09:20:44 +0000 (17:20 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 31 May 2012 03:41:46 +0000 (21:41 -0600)
commit746ff701e8727439cac8ca72531d82e5cb7fa129
tree2c375a3effad81e5091e1c1ba39e6e1dc36cdcd2
parentf3cfc7c8848006b613e09bb1acd081716854527e
command: check for fork error before closing fd

We should not set *outfd or *errfd if virExecWithHook() failed
because the caller may close these fds.

Bug present since v0.4.5 (commit 60ed1d2a).
src/util/command.c