Commit 92a088a0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Restore fdflags on proper fd

After reopen_fd_as the original fd is closed.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2d636abe
......@@ -554,7 +554,7 @@ static int open_fd(int pid, struct fdinfo_entry *fe, struct file_desc *d)
if (reopen_fd_as(fe->fd, tmp))
return -1;
fcntl(tmp, F_SETFD, fe->flags);
fcntl(fe->fd, F_SETFD, fe->flags);
sock = socket(PF_UNIX, SOCK_DGRAM, 0);
if (sock < 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