criu/Documentation
Andrei Vagin ac5cac188d crtools: close a signal descriptor after passing a preparation stage
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.

v3: fix a help message

v4: Here is a sequence of actions how it can be used:
     * open a pipe
     * run a service with the pipe[1] as status_fd
     * read(pipe[0]) to wait a moment when the service will be ready to
       accept connections
     * do a work which requires the service
     * wait the service process to gets its exit status to be sure that
       everything okey

travis-ci: success for crtools: close a signal descriptor after passing a preparation stage (rev6)
Cc: Mike Rapoport <mike.rapoport@gmail.com>
Cc: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2017-02-03 16:55:07 +03:00
..
.gitattributes docs: Initial commit 2012-01-29 00:09:32 +04:00
.gitignore Doc/Makefile: add ps and pdf generation 2014-01-11 09:16:40 +04:00
asciidoc.conf docs: Initial commit 2012-01-29 00:09:32 +04:00
crit.txt crit: added crit manpage 2016-12-12 11:34:22 +03:00
criu.txt crtools: close a signal descriptor after passing a preparation stage 2017-02-03 16:55:07 +03:00
custom.xsl Documentation: enable monospaced font in PS/PDF 2016-09-27 17:06:02 +03:00
HOWTO.cross-compile Documentation: remove the linker command line switch --static from the final step described in the cross-compilation guide 2014-03-11 22:47:38 +04:00
Makefile crit: added crit manpage 2016-12-12 11:34:22 +03:00