[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: libxl__ev_child pass actual pid to callback
commit d6ffc6bac68e87f04f97b2c32c3092f7d0a36212 Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> AuthorDate: Tue Jun 23 19:22:07 2015 +0100 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Fri Jun 26 16:53:51 2015 +0100 libxl: libxl__ev_child pass actual pid to callback The callbacks actually ignore this except for logging, but we should log the correct pid. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- v4: New patch in this version of the series. --- tools/libxl/libxl_fork.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/libxl/libxl_fork.c b/tools/libxl/libxl_fork.c index 144208a..4486687 100644 --- a/tools/libxl/libxl_fork.c +++ b/tools/libxl/libxl_fork.c @@ -447,9 +447,10 @@ static int perhaps_sigchld_needed(libxl__gc *gc, bool creating) static void childproc_reaped_ours(libxl__egc *egc, libxl__ev_child *ch, int status) { + pid_t pid = ch->pid; LIBXL_LIST_REMOVE(ch, entry); ch->pid = -1; - ch->callback(egc, ch, ch->pid, status); + ch->callback(egc, ch, pid, status); } static int childproc_reaped(libxl__egc *egc, pid_t pid, int status) -- 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 |