[CRIU] [rfc 4/4] pstree: Allocate core entries in pstree item and fetch regs earlier

Pavel Emelyanov xemul at parallels.com
Fri Feb 22 06:40:28 EST 2013


On 02/20/2013 07:22 PM, Cyrill Gorcunov wrote:
> 
> Parasite as a daemon will require the registers to be fetched
> early before we enter such weird (a bit) mode. Thus bound core
> entries to pstree item and fetch registers once task and threads
> are seized.

You can't do it this way, because once a child of seized task dies,and the
latter one receives sigchild you'd have to go the let-the-task-handle-signal
code in ptrace and registers would change.

> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  cr-dump.c        | 120 +++++++++++++++++++++----------------------------------
>  include/pstree.h |   5 ++-
>  pstree.c         |  85 ++++++++++++++++++++++++++++++++++++++-
>  3 files changed, 134 insertions(+), 76 deletions(-)
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 




More information about the CRIU mailing list