aboutsummaryrefslogtreecommitdiffstats
path: root/vcl-ldpreload/src/libvcl-ldpreload/vcom.c
diff options
context:
space:
mode:
authorKeith Burns <alagalah@gmail.com>2017-10-10 17:47:38 +0000
committerGerrit Code Review <gerrit@fd.io>2017-10-10 17:47:38 +0000
commite366e723d9afac1af35529a0e959e7226d000d6f (patch)
tree89ac8dacaa1953e25914c608fd885e6be6a31124 /vcl-ldpreload/src/libvcl-ldpreload/vcom.c
parent7e4ce408388ce1954cc079e24183ab4fed438909 (diff)
parentbe6a76706785f960f825220b4c89eb1f46382857 (diff)
Merge "LD_PRELOAD epoll_wait implementation"
Diffstat (limited to 'vcl-ldpreload/src/libvcl-ldpreload/vcom.c')
-rw-r--r--vcl-ldpreload/src/libvcl-ldpreload/vcom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl-ldpreload/src/libvcl-ldpreload/vcom.c b/vcl-ldpreload/src/libvcl-ldpreload/vcom.c
index 7a13249..e148ce0 100644
--- a/vcl-ldpreload/src/libvcl-ldpreload/vcom.c
+++ b/vcl-ldpreload/src/libvcl-ldpreload/vcom.c
@@ -2822,12 +2822,12 @@ epoll_wait (int __epfd, struct epoll_event *__events,
pid,
rv, __epfd, __events,
__maxevents, __timeout);
- if (rv != 0)
+ if (rv < 0)
{
errno = -rv;
return -1;
}
- return 0;
+ return rv;
}
else
{
@@ -2883,12 +2883,12 @@ epoll_pwait (int __epfd, struct epoll_event *__events,
rv, __epfd, __events,
__maxevents, __timeout,
__ss);
- if (rv != 0)
+ if (rv < 0)
{
errno = -rv;
return -1;
}
- return 0;
+ return rv;
}
else
{