[CRIU] [PATCH] ptrace: add ability to get/set signal-blocked mask

Cyrill Gorcunov gorcunov at openvz.org
Fri Apr 19 09:14:33 EDT 2013


On Fri, Apr 19, 2013 at 04:58:49PM +0400, Andrey Vagin wrote:
>  
> +	case PTRACE_GETSIGMASK:
> +		if (addr != sizeof(sigset_t)) {
> +			ret = -EINVAL;
> +			break;
> +		}
> +
> +		if (copy_to_user(datavp, &child->blocked, sizeof(sigset_t)))
		{
> +			ret = -EFAULT;
			break;
		}
> +
> +		ret = 0;
> +		break;
> +

Other looks good to me.


More information about the CRIU mailing list