[CRIU] [PATCH 4/4] zdtm/ipc_namespace: set the auto_msgmni sysctl to zero
Andrey Vagin
avagin at openvz.org
Wed Aug 13 06:51:05 PDT 2014
We are going to execute tests concurrently, but if auto_msgmni is
enabled, the msgmni is recalcalated each time, when ipcns is created
or removed.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm/live/static/ipc_namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/live/static/ipc_namespace.c b/test/zdtm/live/static/ipc_namespace.c
index d54c387..c260885 100644
--- a/test/zdtm/live/static/ipc_namespace.c
+++ b/test/zdtm/live/static/ipc_namespace.c
@@ -251,7 +251,7 @@ static int rand_ipc_ns(void)
if (!ret)
ret = rand_ipc_sysctl("/proc/sys/kernel/msgmni", (unsigned)lrand48());
if (!ret)
- ret = rand_ipc_sysctl("/proc/sys/kernel/auto_msgmni", (unsigned)lrand48() & 1);
+ ret = rand_ipc_sysctl("/proc/sys/kernel/auto_msgmni", 0);
if (!ret)
ret = rand_ipc_sysctl("/proc/sys/kernel/shmmax", (unsigned)lrand48());
if (!ret)
--
1.9.3
More information about the CRIU
mailing list