• Kirill Tkhai's avatar
    cr-restore: Open transport socket earlier · 7952c6a7
    Kirill Tkhai authored
    I need named socket to communicate with pid_ns helpers
    (see next patches) and receive answer from them
    (it's impossible to send answer to unnamed socket).
    As we already have transport socket, we'll reuse it
    for the above goal too.
    
    This patch makes transport sockets be created before
    creation of children tasks. Also, now they are created
    not only for alive tasks (so we need additional
    manipulations for TASK_HELPERS, e.g., to call prepare_fdt()).
    
    v5: Return CLONE_FILES clone() argument during task helpers
    creation. Also get rid of fdt_mutex as CLONE_FILES processes
    does not close old files after clone, and we don't have
    intertersections between them. Also, socket() system call
    can't return a fd in service fds range, which was the main
    reason to have this mutex.
    Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    7952c6a7
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...