mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
files: Allow epolls sent over unix socket
Since epoll restore is split in two parts, epoll_create() does not depend on another files state. Since epoll is created, it can be sent to everywhere. So, there is no circular dependences, and we allow epolls sent over unix socket. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
7d1eeee729
commit
8377abeb1f
1 changed files with 3 additions and 4 deletions
|
|
@ -102,11 +102,10 @@ static int dump_scm_rights(struct cmsghdr *ch, SkPacketEntry *pe)
|
|||
return -1;
|
||||
|
||||
/*
|
||||
* Unix sent over Unix or Epoll with some other sh*t
|
||||
* sent over unix (maybe with this very unix polled)
|
||||
* are tricky and not supported for now. (XXX -- todo)
|
||||
* Unix sent over Unix are tricky and not supported
|
||||
* for now. (XXX -- todo).
|
||||
*/
|
||||
if (ftyp == FD_TYPES__UNIXSK || ftyp == FD_TYPES__EVENTPOLL) {
|
||||
if (ftyp == FD_TYPES__UNIXSK) {
|
||||
pr_err("Can't dump send %d (unix/epoll) fd\n", ftyp);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue