2
0
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:
Andrey Vagin 2012-01-10 20:02:00 +04:00 committed by Cyrill Gorcunov
parent 9129d4e2a1
commit 14e42bb704

View File

@ -966,7 +966,7 @@ err:
static int prepare_pipes(int pid)
{
u32 err = 1, ret;
u32 err = -1, ret;
int pipes_fd;
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);
pr_err("%d: Something failed with code %d\n", ret);
pr_err("%d: Something failed with code %d\n", pid, ret);
exit(1);
}