mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +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:
|
case FD_STATE_CREATE:
|
||||||
ret = open_fd(pid, fle->fe, fle->desc);
|
ret = open_fd(pid, fle->fe, fle->desc);
|
||||||
break;
|
break;
|
||||||
case FD_STATE_POST_CREATE:
|
|
||||||
ret = post_open_fd(pid, fle->fe, fle->desc);
|
|
||||||
break;
|
|
||||||
case FD_STATE_RECV:
|
case FD_STATE_RECV:
|
||||||
ret = receive_fd(pid, fle->fe, fle->desc);
|
ret = receive_fd(pid, fle->fe, fle->desc);
|
||||||
break;
|
break;
|
||||||
|
case FD_STATE_POST_CREATE:
|
||||||
|
ret = post_open_fd(pid, fle->fe, fle->desc);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@@ -35,8 +35,8 @@ struct fd_parms {
|
|||||||
enum fdinfo_states {
|
enum fdinfo_states {
|
||||||
FD_STATE_PREP, /* Create unix sockets */
|
FD_STATE_PREP, /* Create unix sockets */
|
||||||
FD_STATE_CREATE, /* Create and send fd */
|
FD_STATE_CREATE, /* Create and send fd */
|
||||||
FD_STATE_POST_CREATE, /* Execute actions, when everyone was created */
|
|
||||||
FD_STATE_RECV, /* Receive fd */
|
FD_STATE_RECV, /* Receive fd */
|
||||||
|
FD_STATE_POST_CREATE, /* Execute actions, when everyone was created */
|
||||||
|
|
||||||
FD_STATE_MAX
|
FD_STATE_MAX
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user