Commit 579e241c authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

Revert "restore: pipes -- Allow to reuse descriptors"

This reverts commit 46c613cc.

Andrey posted a proper fix for it. Moreover, the problem in first
place was initiated by a parasite application running during test
case, crtools knows nothing about.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 46c613cc
......@@ -747,7 +747,7 @@ static int reopen_pipe(int src, int *dst, int *other)
if (move_img_fd(other, *dst))
return -1;
return reopen_fd_as_nocheck(*dst, src);
return reopen_fd_as(*dst, src);
}
*dst = src;
......@@ -880,7 +880,7 @@ static int attach_pipe(int pid, struct pipe_entry *e, struct pipe_info *pi, int
}
pr_info("\t%d: Done, reopening for %d\n", pid, e->fd);
if (reopen_fd_as_nocheck(e->fd, fd))
if (reopen_fd_as(e->fd, fd))
return -1;
cr_wait_dec(&pi->users);
......
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