Commit 14e42bb7 authored by Andrey Vagin's avatar Andrey Vagin Committed by Cyrill Gorcunov

pipe: fix error code and message

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 9129d4e2
...@@ -966,7 +966,7 @@ err: ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment