]> git.ipfire.org Git - thirdparty/libvirt.git/commit
command: avoid double close in virExecWithHook
authorJán Tomko <jtomko@redhat.com>
Tue, 21 Aug 2012 09:01:44 +0000 (11:01 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 21 Aug 2012 17:46:49 +0000 (11:46 -0600)
commit8211c677a36609c8d861f23ef21ec2c2e5645ece
tree910dbe86ec0f7176bc6e1af299ff6a160eaf6b00
parent4efde75fab4633d35e70b96cb540e9a903eae1b9
command: avoid double close in virExecWithHook

Fix possible double close in the child process after the fork in case
infd and outfd are equal, just like they are after being called from
virNetSocketNewConnectCommand.
src/util/command.c