Commit 17b05ab4 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

files: restore file descriptor flags on the correct fd

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2e20b480
...@@ -671,7 +671,7 @@ static int receive_fd(int pid, struct fdinfo_list_entry *fle) ...@@ -671,7 +671,7 @@ static int receive_fd(int pid, struct fdinfo_list_entry *fle)
if (reopen_fd_as(fle->fe->fd, tmp) < 0) if (reopen_fd_as(fle->fe->fd, tmp) < 0)
return -1; return -1;
fcntl(tmp, F_SETFD, fle->fe->flags); fcntl(fle->fe->fd, F_SETFD, fle->fe->flags);
return 0; return 0;
} }
......
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