Commit b1739c08 authored by Andrew Vagin's avatar Andrew Vagin Committed by Cyrill Gorcunov

restore: fix counter in pipe_entry

The counter should be incremented all times, when new user is found.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
parent 06ae1f86
......@@ -199,10 +199,10 @@ static int try_to_add_pipe(int pid, struct pipe_entry *e, int p_fd)
if (pipes[i].id != e->pipeid)
continue;
if (pipes[i].pid > pid) {
if (pipes[i].pid > pid)
pipes[i].pid = pid;
pipes[i].users++;
}
pipes[i].users++;
return 0;
}
......
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