[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: fork: Break out childproc_reaped_ours
commit 2231205419d38024f65a8e4066e34d204f5ce13a Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> AuthorDate: Thu Jan 16 16:40:05 2014 +0000 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Thu Feb 6 14:20:18 2014 +0000 libxl: fork: Break out childproc_reaped_ours We're going to want to do this again at a new call site. No functional change. 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 | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_fork.c b/tools/libxl/libxl_fork.c index 2252370..7b84765 100644 --- a/tools/libxl/libxl_fork.c +++ b/tools/libxl/libxl_fork.c @@ -290,6 +290,14 @@ static int perhaps_installhandler(libxl__gc *gc, bool creating) return 0; } +static void childproc_reaped_ours(libxl__egc *egc, libxl__ev_child *ch, + int status) +{ + LIBXL_LIST_REMOVE(ch, entry); + ch->pid = -1; + ch->callback(egc, ch, ch->pid, status); +} + static int childproc_reaped(libxl__egc *egc, pid_t pid, int status) { EGC_GC; @@ -303,9 +311,7 @@ static int childproc_reaped(libxl__egc *egc, pid_t pid, int status) return ERROR_UNKNOWN_CHILD; found: - LIBXL_LIST_REMOVE(ch, entry); - ch->pid = -1; - ch->callback(egc, ch, pid, status); + childproc_reaped_ours(egc, ch, status); perhaps_removehandler(gc); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |