[CRIU] [PATCH 0/3 v3] crtools: close a signal descriptor after passing a preparation stage
Andrei Vagin
avagin at openvz.org
Mon Jan 23 14:57:40 PST 2017
From: Andrei Vagin <avagin at virtuozzo.com>
From: Andrei Vagin <avagin at virtuozzo.com>
This patch adds the --siganl-fd FD option to specify a file descriptor.
CRIU will write '\0' to this descriptor and close it after passing
a preparation stage.
It is alternative way to demonizing a criu process after a preparation
stage. It's imposiable to get exit code, if a process has daemonized.
The introduced way allows to wait a preparation stage and to get an exit
code. It can be easy used from shell and other script languages.
v2: fix zdtm.py --rpc
Looks-good-to: Adrian Reber <adrian at lisas.de>
Andrei Vagin (3):
crtools: close a signal descriptor after passing a preparation stage
test: check exit codes for criu page-server and criu lazy-pages
crtools: fix exit code for page-server
Documentation/criu.txt | 6 +++++
criu/crtools.c | 12 +++++++++-
criu/include/cr_options.h | 1 +
criu/include/util.h | 1 +
criu/uffd.c | 3 +++
criu/util.c | 18 +++++++++++++++
test/zdtm.py | 57 +++++++++++++++++++++++++++++++++++++++--------
7 files changed, 88 insertions(+), 10 deletions(-)
--
2.7.4
More information about the CRIU
mailing list