mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
ns: initialize nsid in rst_add_ns_id
Execute zdtm/live/static/pipe00 ./pipe00 --pidfile=pipe00.pid --outfile=pipe00.out Dump 3158 Restore test/zdtm.sh: line 472: 3173 Segmentation fault (core dumped) setsid restore --file-locks --tcp-established -x -D -o Reported-by: Jenkins Criuovich Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
8d5822d9cb
commit
a20011aca6
@ -147,7 +147,8 @@ int rst_add_ns_id(unsigned int id, pid_t pid, struct ns_desc *nd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rst_new_ns_id(id, pid, nd) == NULL)
|
nsid = rst_new_ns_id(id, pid, nd);
|
||||||
|
if (nsid == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
pr_info("Add namespace %d pid %d\n", nsid->id, nsid->pid);
|
pr_info("Add namespace %d pid %d\n", nsid->id, nsid->pid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user