[CRIU] [PATCH RFC] parasite: don't daemonize non-leader threads

Cyrill Gorcunov gorcunov at openvz.org
Fri May 24 18:10:30 EDT 2013


On Sat, May 25, 2013 at 01:33:55AM +0400, Andrey Vagin wrote:
> For dumping thread we need to execute only one command, so its
> demonization is overload.
> 
> This patch blocks all signals and dumps all thread related parameters in
> PARASITE_CMD_INIT_THREAD, then registers are dumped for this thread and
> the last step is unblocking thread signals.
> 
> This patch simplifies a parasite code, because it removes execution of
> commands for threads.
> 
> Don't commit this patch. It's just proof of concept.
> 
> Thanks Pavel for this idea.

Looks promising. And it presumes we don't need to allocate
dynamic stacks for every thread?

	Cyrill


More information about the CRIU mailing list