[CRIU] [PATCH 4/4] prctl: restore -- Use new PR_SET_MM_MAP if kernel supports

Cyrill Gorcunov gorcunov at gmail.com
Thu Oct 23 06:58:35 PDT 2014


On Thu, Oct 23, 2014 at 05:43:20PM +0400, Pavel Emelyanov wrote:
> 
> I don't understand the need in args->prctl_may_use_mm_map. Why not just
> 
> ret = prctl(PR_SET_MM< PR_SET_MM_MAP, ...);
> if (ret == -EINVAL) {
> 	ret = <old code>
> }

Same eggs, side view. Look, we need to choose which version to call,
thus we choose proper version in kernel-dat, and reuse it for "check"
and restore.


More information about the CRIU mailing list