command: avoid double close in virExecWithHook
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.

libvirt/libvirt,datto/libvirt,warewolf/libvirt,emaste/libvirt,emaste/libvirt,rlaager/libvirt,zippy2/libvirt,eskultety/libvirt,elmarco/libvirt,siboulet/libvirt-openvz,emaste/libvirt,jeckersb/libvirt,jeckersb/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,eskultety/libvirt,rlaager/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,wiedi/libvirt,olafhering/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,bjzhang/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,datto/libvirt,fabianfreyer/libvirt,datto/libvirt,fabianfreyer/libvirt,wiedi/libvirt,zippy2/libvirt,taget/libvirt,nertpinx/libvirt,agx/libvirt,jfehlig/libvirt,trainstack/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,elmarco/libvirt,taget/libvirt,siboulet/libvirt-openvz,VenkatDatta/libvirt,wiedi/libvirt,datto/libvirt,cbosdo/libvirt,jardasgit/libvirt,olafhering/libvirt,trainstack/libvirt,wiedi/libvirt,agx/libvirt,libvirt/libvirt,trainstack/libvirt,zippy2/libvirt,jfehlig/libvirt,jardasgit/libvirt,crobinso/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,eskultety/libvirt,shugaoye/libvirt,emaste/libvirt,jeckersb/libvirt,wiedi/libvirt,trainstack/libvirt,jeckersb/libvirt,warewolf/libvirt,warewolf/libvirt,warewolf/libvirt,emaste/libvirt,elmarco/libvirt,cbosdo/libvirt,nertpinx/libvirt,eskultety/libvirt,agx/libvirt,elmarco/libvirt,rlaager/libvirt,iam-TJ/libvirt,warewolf/libvirt,crobinso/libvirt,shugaoye/libvirt,warewolf/libvirt,shugaoye/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,trainstack/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,zippy2/libvirt,shugaoye/libvirt,libvirt/libvirt,trainstack/libvirt,emaste/libvirt,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,libvirt/libvirt,bjzhang/libvirt,shugaoye/libvirt,jardasgit/libvirt,jardasgit/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,cbosdo/libvirt,iam-TJ/libvirt,taget/libvirt,emaste/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,novel/fbsd-libvirt,agx/libvirt,andreabolognani/libvirt,bjzhang/libvirt,jeckersb/libvirt,rlaager/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,elmarco/libvirt,novel/fbsd-libvirt,olafhering/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,agx/libvirt,iam-TJ/libvirt,warewolf/libvirt,nertpinx/libvirt,jeckersb/libvirt,bjzhang/libvirt,olafhering/libvirt,novel/fbsd-libvirt,crobinso/libvirt,andreabolognani/libvirt,cbosdo/libvirt,datto/libvirt,taget/libvirt,eskultety/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,wiedi/libvirt,bjzhang/libvirt,iam-TJ/libvirt,taget/libvirt,jfehlig/libvirt