]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: improve subprocess handling
authorJim Fehlig <jfehlig@suse.com>
Thu, 16 Jan 2014 23:16:37 +0000 (23:16 +0000)
committerJim Fehlig <jfehlig@suse.com>
Thu, 6 Feb 2014 17:20:31 +0000 (10:20 -0700)
commit778067e19593f223f76aba99e18d608cbf3247c7
treefdabcdd24cc8bc9d9cf6ae0d47cb10533df1e9ad
parent03b3f8940af1a3179b7d5e19b25f54290bde10e0
libxl: improve subprocess handling

If available, let libxl handle reaping any children it creates by
specifying libxl_sigchld_owner_libxl_always_selective_reap.  This
feature was added to improve subprocess handling in libxl when used
in an application that does not install a SIGCHLD handler like
libvirt

http://lists.xen.org/archives/html/xen-devel/2014-01/msg01555.html

Prior to this patch, it is possible to hit asserts in libxl when
reaping subprocesses, particularly during simultaneous operations
on multiple domains.  With this patch, and the corresponding changes
to libxl, I no longer see the asserts.  Note that the libxl changes
will be included in Xen 4.4.0.  Previous Xen versions will be
susceptible to hitting the asserts even with this patch applied to
the libvirt libxl driver.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_domain.c