[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 05/12] libxl: fork: assert that chldmode is right
In libxl_childproc_reaped, check that the chldmode is as expected. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Cc: Jim Fehlig <jfehlig@xxxxxxxx> Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/libxl/libxl_fork.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxl/libxl_fork.c b/tools/libxl/libxl_fork.c index 7b84765..85db2fb 100644 --- a/tools/libxl/libxl_fork.c +++ b/tools/libxl/libxl_fork.c @@ -322,6 +322,8 @@ int libxl_childproc_reaped(libxl_ctx *ctx, pid_t pid, int status) { EGC_INIT(ctx); CTX_LOCK; + assert(CTX->childproc_hooks->chldowner + == libxl_sigchld_owner_mainloop); int rc = childproc_reaped(egc, pid, status); CTX_UNLOCK; EGC_FREE; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |