mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-28 21:07:43 +00:00
pipe: fix error code and message
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
9129d4e2a1
commit
14e42bb704
@ -966,7 +966,7 @@ err:
|
|||||||
|
|
||||||
static int prepare_pipes(int pid)
|
static int prepare_pipes(int pid)
|
||||||
{
|
{
|
||||||
u32 err = 1, ret;
|
u32 err = -1, ret;
|
||||||
int pipes_fd;
|
int pipes_fd;
|
||||||
|
|
||||||
struct pipe_list_entry *le, *buf;
|
struct pipe_list_entry *le, *buf;
|
||||||
@ -1092,7 +1092,7 @@ static inline int fork_with_pid(int pid, char *pstree_path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = restore_task_with_children(my_pid, pstree_path);
|
ret = restore_task_with_children(my_pid, pstree_path);
|
||||||
pr_err("%d: Something failed with code %d\n", ret);
|
pr_err("%d: Something failed with code %d\n", pid, ret);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user