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

Andrei Vagin avagin at openvz.org
Tue Jan 10 13:21:42 PST 2017


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):
  [v4] 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

 Documentation/criu.txt    |  6 +++++
 criu/crtools.c            | 12 +++++++++-
 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              | 60 +++++++++++++++++++++++++++++++++++++----------
 8 files changed, 91 insertions(+), 14 deletions(-)

--
2.7.4



More information about the CRIU mailing list