[CRIU] Re: [PATCH v2] dump: wait task stopped for 1 sec

Pavel Emelyanov xemul at parallels.com
Tue Jan 31 08:54:58 EST 2012


On 01/31/2012 05:31 PM, Kinsbursky Stanislav wrote:
> 31.01.2012 17:29, Pavel Emelyanov пишет:
>> On 01/31/2012 04:43 PM, Kinsbursky Stanislav wrote:
>>> From: Stanislav Kinsbursky<skinsbursky at parallels.com>
>>>
>>> Wait for 1 sec in case of task is not stopped to dump stage and check it's
>>> state once more.
>>> Should help against this error:
>>>
>>> Obtainting task stat ... Error (cr-dump.c:1213): Task in bad state: R
>>>
>>> Signed-off-by: Stanislav Kinsbursky<skinsbursky at parallels.com>
>> Synchronizing with sleep()-s just sucks.
> 
> Waiting for better solutions from you, Pavel. :)
> 

We should remove sending STOP to tasks and do ptrace's SEIZE + INTERRUPT right
on the collecting pstree stage.



More information about the CRIU mailing list