[CRIU] [PATCH 3/3] zdtm: Extend eventfs00 for deferred eventpoll
test
Cyrill Gorcunov
gorcunov at openvz.org
Fri May 4 08:31:14 EDT 2012
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/eventfs00.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/zdtm/live/static/eventfs00.c b/test/zdtm/live/static/eventfs00.c
index 184b7d7..69fc881 100644
--- a/test/zdtm/live/static/eventfs00.c
+++ b/test/zdtm/live/static/eventfs00.c
@@ -40,11 +40,6 @@ int main(int argc, char *argv[])
test_init(argc, argv);
- if (pipe(pipefd)) {
- fail("pipe");
- exit(1);
- }
-
epollfd = epoll_create(1);
if (epollfd < 0) {
fail("epoll_create");
@@ -60,6 +55,11 @@ int main(int argc, char *argv[])
memset(&ev, 0xff, sizeof(ev));
ev.events = EPOLLIN | EPOLLOUT;
+ if (pipe(pipefd)) {
+ fail("pipe");
+ exit(1);
+ }
+
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) {
fail("epoll_ctl");
exit(1);
--
1.7.7.6
More information about the CRIU
mailing list