• Cyrill Gorcunov's avatar
    epoll: Use real file transferred for target fds check · 1804d6f3
    Cyrill Gorcunov authored
    When we are checkpoiting epoll targets we assuming that this target
    file is belonging to the process we are on. This is of course not
    true. Without kernel support the only thing we can do is compare
    fd numbers with ones present in epoll fdinfo. When fd numer match
    we assume that it indeed the file which has been added into epoll.
    
    This won't cover the case when file has been moved to some other
    number and new one is reopened instead of it. Such scenario will
    trigger false positive and we can't do anything about.
    
    In next patches with kernel help we will make precise check for
    files identity.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    1804d6f3
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...