Skip to content
Commit 65e9402d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov
Browse files

restore: Fix pipes restore if both pipe ends are used by former process



In case if the former process used both pipe ends we fall
into endless loop since the 'users' never reaches 1. So
to resolve this during the pipe collectioning we check if
both pipe ends were used by a former process and if so --
we connect first pipe end immediately in create_pipe and
connect the rest via  attach_pipe.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 61a6eb78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment