[CRIU] [PATCH] zdtm/chroot: wait when a child closes a descriptor
Andrey Vagin
avagin at openvz.org
Tue Dec 29 15:18:06 PST 2015
From: Andrew Vagin <avagin at virtuozzo.com>
A static test should not change its state during C/R.
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
test/zdtm/live/static/chroot.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/zdtm/live/static/chroot.c b/test/zdtm/live/static/chroot.c
index a7069a8..39b1ace 100644
--- a/test/zdtm/live/static/chroot.c
+++ b/test/zdtm/live/static/chroot.c
@@ -78,6 +78,7 @@ int main(int argc, char **argv)
res = ERR_PIPES;
read(pipe_prep[0], &res, 1);
+ read(pipe_prep[0], &res, 1); /* wait when pipe_prep[] will be closed */
if (res != SUCCESS) {
if (res == ERR_PIPES)
pr_perror("broken pipes");
--
2.4.3
More information about the CRIU
mailing list