mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: Call setsid(2) before exec'ing device model
While doing development on libvirt libxenlight driver I noticed that terminating a libxenlight client causes any qemu-dm processes that were indirectly created by the client to also terminate. Calling setsid(2) before exec'ing qemu-dm resolves the issue. Signed-off-by: Jim Fehlig <jfehlig@novell.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
44a953192a
commit
bea472a7e1
1 file changed
+1
@@ -694,6 +694,7 @@ retry_transaction:
|
||||
if (rc < 0)
|
||||
goto out_close;
|
||||
if (!rc) { /* inner child */
|
||||
setsid();
|
||||
libxl__exec(null, logfile_w, logfile_w,
|
||||
libxl__abs_path(&gc, info->device_model, libxl_libexec_path()),
|
||||
args);
|
||||
|
||||