mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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@eu.citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com> --- v4: New patch in this version of the series.
This commit is contained in:
1 parent
2adbf6dc29
commit
d6ffc6bac6
1 file changed
+2
-1
@@ -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)
|
||||
|
||||