[CRIU] [PATCH v4 03/15] sysctl: add CTL_FLAGS_HAS to mark successful sysctl_op request
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Thu Apr 21 09:01:42 PDT 2016
v4:
replace separate has pointer to CTL_FLAGS_HAS flag, second part in
patch 05/15
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
criu/sysctl.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/criu/sysctl.c b/criu/sysctl.c
index 21ae4ce..d8fa04a 100644
--- a/criu/sysctl.c
+++ b/criu/sysctl.c
@@ -261,6 +261,9 @@ static int __userns_sysctl_op(void *arg, int proc_fd, pid_t pid)
goto out;
}
+ /* mark sysctl in question exists */
+ req->flags |= CTL_FLAGS_HAS;
+
/* save a pointer to the req, so we don't need to recompute its
* location
*/
@@ -371,6 +374,9 @@ static int __nonuserns_sysctl_op(struct sysctl_req *req, size_t nr_req, int op)
goto out;
}
+ /* mark sysctl in question exists */
+ req->flags |= CTL_FLAGS_HAS;
+
ret = do_sysctl_op(fd, req, op);
if (ret)
goto out;
--
1.9.3
More information about the CRIU
mailing list