[CRIU] [PATCH 1/3] files: restore file descriptor flags on the correct fd

Andrew Vagin avagin at parallels.com
Mon Mar 18 14:49:07 EDT 2013


On Mon, Mar 18, 2013 at 10:27:04PM +0400, Pavel Emelyanov wrote:
> 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

It's bad, because you didn't commit the second patch, so pty01 will
fail.


More information about the CRIU mailing list