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

Andrew Vagin avagin at parallels.com
Fri Apr 19 09:36:09 EDT 2013


On Fri, Apr 19, 2013 at 05:14:33PM +0400, Cyrill Gorcunov wrote:
> 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.

Thanks


More information about the CRIU mailing list