[CRIU] [PATCH] zdtm: Update proc-self test
Cyrill Gorcunov
gorcunov at openvz.org
Tue May 21 05:03:55 EDT 2013
The link must be read after restore on original
file descriptor since namespace id do change between
c/r sessions.
https://bugzilla.openvz.org/show_bug.cgi?id=2599
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/proc-self.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/zdtm/live/static/proc-self.c b/test/zdtm/live/static/proc-self.c
index 5cef7b9..07e5300 100644
--- a/test/zdtm/live/static/proc-self.c
+++ b/test/zdtm/live/static/proc-self.c
@@ -50,14 +50,14 @@ int main(int argc, char *argv[])
return -1;
}
+ test_daemon();
+ test_waitsig();
+
if (read_fd_link(fd_self, path_orig, sizeof(path_orig))) {
err("Can't fill original path");
return -1;
}
- test_daemon();
- test_waitsig();
-
fd_new = open(nspath, O_RDONLY);
if (fd_new < 0) {
err("Can't open %s", nspath);
--
1.8.1.4
More information about the CRIU
mailing list