mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
06ae1f8697
commit
b1739c08f5
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue