[CRIU] [PATCH 12/14] restore: set up a handler for collecting signals from zombies

Pavel Emelyanov xemul at parallels.com
Fri Jan 18 03:04:11 EST 2013


> @@ -40,6 +41,20 @@
>  static struct task_entries *task_entries;
>  static futex_t thread_inprogress;
>  
> +asm (								\
> +	"nop\n"							\
> +	".align 16\n"						\
> +	"__cr_restore_rt:\n"					\
> +	"       movq $"__stringify(__NR_rt_sigreturn)", %rax\n"	\
> +	"       syscall"					\
> +);

What's this?

> +extern void cr_restore_rt (void) asm ("__cr_restore_rt")
> +			__attribute__ ((visibility ("hidden")));
> +
> +static void sigzombie_handler(int signal, siginfo_t *siginfo, void *data)
> +{
> +}
> +
>  static void sigchld_handler(int signal, siginfo_t *siginfo, void *data)
>  {
>  	char *r;


More information about the CRIU mailing list