restore: fix counter in pipe_entry

The counter should be incremented all times, when new user is found.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
Andrew Vagin 2011-09-27 12:55:05 +04:00 committed by Cyrill Gorcunov
parent 06ae1f8697
commit b1739c08f5

View file

@ -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;
}