[CRIU] [PATCH 10/22] parasite: Switch parasite to daemon mode

Cyrill Gorcunov gorcunov at openvz.org
Wed May 15 09:29:07 EDT 2013


On Wed, May 15, 2013 at 05:17:26PM +0400, Pavel Emelyanov wrote:
> > +		args->real = tid;
> > +		ret = parasite_execute_trap_by_pid(PARASITE_CMD_INIT_THREAD, ctl, tid);
> >  		if (ret) {
> > -			pr_err("Can't init thread in parasite %d\n",
> > -			       item->threads[i].real);
> > +			pr_err("Can't init thread in parasite %d\n", tid);
> >  			break;
> >  		}
> > +
> > +		if (parasite_daemonize(ctl, tid))
> > +			break;
> 
> Can we merge INIT_THREAD with DAEMONIZE for sub-threads?

I believe this could be addressed on top. Look, the whole series
was about to switch the parasite to daemon mode and not change
the command sequence or logic. Once it works as we expected we
can start simplifying the code and try to merge various snippets
if needed.


More information about the CRIU mailing list