Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix bug with glibc epoll fd
[vpp.git]
/
src
/
vcl
/
vcom.c
diff --git
a/src/vcl/vcom.c
b/src/vcl/vcom.c
index
592be1b
..
327ab88
100644
(file)
--- a/
src/vcl/vcom.c
+++ b/
src/vcl/vcom.c
@@
-3194,7
+3194,7
@@
vcom_epoll_pwait (int epfd, struct epoll_event *events,
getpid (), epfd, epfd, func_str,
libc_epfd, libc_epfd, events, maxevents, sigmask);
getpid (), epfd, epfd, func_str,
libc_epfd, libc_epfd, events, maxevents, sigmask);
- rv = libc_epoll_pwait (epfd, events, maxevents, 1, sigmask);
+ rv = libc_epoll_pwait (
libc_
epfd, events, maxevents, 1, sigmask);
if (rv != 0)
goto done;
}
if (rv != 0)
goto done;
}
@@
-3207,6
+3207,8
@@
vcom_epoll_pwait (int epfd, struct epoll_event *events,
done:
if (VCOM_DEBUG > 3)
{
done:
if (VCOM_DEBUG > 3)
{
+ if (libc_epfd > 0)
+ epfd = libc_epfd;
if (rv < 0)
{
int errno_val = errno;
if (rv < 0)
{
int errno_val = errno;