[CRIU] [PATCH 1/3] files: restore file descriptor flags on the correct fd
Pavel Emelyanov
xemul at parallels.com
Mon Mar 18 14:27:04 EDT 2013
On 03/18/2013 09:40 PM, Andrey Vagin wrote:
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
> files.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/files.c b/files.c
> index 10f37c9..3464cba 100644
> --- a/files.c
> +++ b/files.c
> @@ -671,7 +671,7 @@ static int receive_fd(int pid, struct fdinfo_list_entry *fle)
> if (reopen_fd_as(fle->fe->fd, tmp) < 0)
> return -1;
>
> - fcntl(tmp, F_SETFD, fle->fe->flags);
> + fcntl(fle->fe->fd, F_SETFD, fle->fe->flags);
> return 0;
> }
>
>
Applied
More information about the CRIU
mailing list