Commit a0560c42 authored by Pavel Emelyanov's avatar Pavel Emelyanov

pipes: Fix wrong pipe info check on master selection

The currently observed list entry should be examined, not
the original one.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 62cf23b9
......@@ -131,7 +131,7 @@ void mark_pipe_master(void)
list_for_each_entry(pic, &pi->pipe_list, pipe_list) {
list_move(&pic->list, &head);
fle = file_master(&p->d);
fle = file_master(&pic->d);
if (fle->pid < pid ||
(pid == fle->pid && fle->fe->fd < fd)) {
p = pic;
......
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