Commit 112b2fe5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Extend eventfs00 for deferred eventpoll test

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 649baf8e
...@@ -40,11 +40,6 @@ int main(int argc, char *argv[]) ...@@ -40,11 +40,6 @@ int main(int argc, char *argv[])
test_init(argc, argv); test_init(argc, argv);
if (pipe(pipefd)) {
fail("pipe");
exit(1);
}
epollfd = epoll_create(1); epollfd = epoll_create(1);
if (epollfd < 0) { if (epollfd < 0) {
fail("epoll_create"); fail("epoll_create");
...@@ -60,6 +55,11 @@ int main(int argc, char *argv[]) ...@@ -60,6 +55,11 @@ int main(int argc, char *argv[])
memset(&ev, 0xff, sizeof(ev)); memset(&ev, 0xff, sizeof(ev));
ev.events = EPOLLIN | EPOLLOUT; ev.events = EPOLLIN | EPOLLOUT;
if (pipe(pipefd)) {
fail("pipe");
exit(1);
}
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) {
fail("epoll_ctl"); fail("epoll_ctl");
exit(1); exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment