[CRIU] [PATCH 03/13] parasite: Add [init|fini]_thread helpers

Pavel Emelyanov xemul at parallels.com
Wed Nov 7 08:32:47 EST 2012


On 11/07/2012 05:00 PM, Cyrill Gorcunov wrote:
> +static int fini_thread(void)
> +{
> +	struct tid_state_s *s = find_thread_state(sys_gettid());

:(

> +	if (!s)
> +		return -ENOENT;
> +
> +	if (s->use_sig_blocked)
> +		return sys_sigprocmask(SIG_SETMASK, &s->sig_blocked,
> +				       NULL, sizeof(k_rtsigset_t));
> +
> +	return 0;
> +}


More information about the CRIU mailing list