mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
files: place the state POST_CREATE after the state RECV
It will be used for restoring epollfd. Currently a transport fd may be added to epollfd. epollfd should be populated, when all descriptors were already received. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
ca567e76c3
commit
403dcb9de5
6
files.c
6
files.c
@@ -450,12 +450,12 @@ static int open_fdinfo(int pid, struct fdinfo_list_entry *fle, int state)
|
||||
case FD_STATE_CREATE:
|
||||
ret = open_fd(pid, fle->fe, fle->desc);
|
||||
break;
|
||||
case FD_STATE_POST_CREATE:
|
||||
ret = post_open_fd(pid, fle->fe, fle->desc);
|
||||
break;
|
||||
case FD_STATE_RECV:
|
||||
ret = receive_fd(pid, fle->fe, fle->desc);
|
||||
break;
|
||||
case FD_STATE_POST_CREATE:
|
||||
ret = post_open_fd(pid, fle->fe, fle->desc);
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user