]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fdstream: avoid child process leak on error
authorEric Blake <eblake@redhat.com>
Tue, 12 Jul 2011 18:07:01 +0000 (12:07 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 14 Jul 2011 18:00:13 +0000 (12:00 -0600)
commit3cbf5d5f76845bc094ee648770d8a8ce3731d6a3
treeeb12d66a76eca77743d7ef61a9d69c4b8f942dae
parente208c38b4908692bc83c81af85bcffbb1c7a5db3
fdstream: avoid child process leak on error

By requesting the pid in virCommandRunAsync, fdstream was claiming
that it would manually wait for the process.  But on the failure
path, the child process was being leaked.

* src/fdstream.c (virFDStreamOpenFileInternal): Auto-reap child.
src/fdstream.c