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

Adrian Reber adrian at lisas.de
Tue Jan 10 23:36:20 PST 2017


On Wed, Jan 11, 2017 at 12:21:42AM +0300, Andrei Vagin wrote:
> 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.

As I am currently looking at runc and criu lazy-pages I want to make
sure I understand this correctly. It sounds like I could pass a FD to
criu and start in in lazy-page mode. Once criu reaches the point where I
can make TCP connections to request lazy pages this FD will be closed,
right?

		Adrian


More information about the CRIU mailing list