[CRIU] [PATCH 0/3 v2] crtools: close a signal descriptor after passing a preparation stage

Andrei Vagin avagin at openvz.org
Thu Nov 17 23:33:08 PST 2016


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

Andrei Vagin (3):
  [v3] crtools: close a signal descriptor after passing a preparation
    stage
  crtools: fix exit code for page-server
  test: check exit codes for criu page-server and criu lazy-pages

 criu/crtools.c            | 14 ++++++++++--
 criu/include/cr_options.h |  1 +
 criu/include/util.h       |  1 +
 criu/page-xfer.c          |  4 +++-
 criu/uffd.c               |  3 +++
 criu/util.c               | 18 ++++++++++++++++
 test/zdtm.py              | 55 +++++++++++++++++++++++++++++++++++++----------
 7 files changed, 82 insertions(+), 14 deletions(-)

-- 
2.7.4



More information about the CRIU mailing list