[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/7] libxl: fork: assert that chldmode is right
On Thu, 2014-01-16 at 17:22 +0000, Ian Jackson wrote: > In libxl_childproc_reaped, check that the chldmode is as expected. The doc comment on libxl_childproc_reaped says: * May be called only by an application which has called setmode with * chldowner == libxl_sigchld_owner_mainloop. If pid was a process started so this is obviously correct. > Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> 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; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |