mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +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
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
pr_info("Add namespace %d pid %d\n", nsid->id, nsid->pid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue