aboutsummaryrefslogtreecommitdiffstats
path: root/vcl-ldpreload/src/libvcl-ldpreload/vcom.c
diff options
context:
space:
mode:
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
{