[CRIU] Signalling processes before CRIU/after unCRIU

Andrew Vagin avagin at parallels.com
Wed Oct 10 09:16:44 EDT 2012


On Wed, Oct 10, 2012 at 04:40:41PM +0400, Pavel Emelyanov wrote:
> On 10/09/2012 04:59 PM, Alex/AT wrote:
> > I do not know, if this was implemented or is in plans, but nevertheless (if implemented, feel free to kick me a bit):
> > 
> > It would be nice that CRIU sends some signal to the process it is dumping before state freeze (and then wait for
> > signal to be handled),
> 
> Sending is OK, but "waiting to be handled" is quite a tricky issue.
> 
> > and just after state unfreeze. This will allow processes knowing about CRIU to close unnecessary
> > descriptors and perform necessary housekeeping just before freeze, and then maybe reopen/redo something after unfreeze.
> 
> I have similar idea in plans, but wanted to implemented it another way. An application willing to
> help CRIU to do its job should be linked with some crtools.so (does not yet exist) and register in
> it. When crtools start dumping some app the former can call code from the latter doing some pre-dump
> work.

I am not sure, but dbus may be used for notification. It is able to send
broadcast or multicast messages and probably we can get a list of tasks,
who described for our signals, for waiting them.

> 
> > --
> > Regards,
> > Alexey Asemov
> > 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list