projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
503a01c
)
libxl: fork: assert that chldmode is right
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 16 Jan 2014 17:12:31 +0000
(17:12 +0000)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Thu, 6 Feb 2014 14:20:19 +0000
(14:20 +0000)
In libxl_childproc_reaped, check that the chldmode is as expected.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_fork.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_fork.c
b/tools/libxl/libxl_fork.c
index 7b84765bd116afda085a1bf39609b771ba3f5a72..85db2fbf01681161af2d1aece04265570d7ce14c 100644
(file)
--- 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;