projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SocketManager::processEvent returns 1 on EINTR
[yazpp-moved-to-github.git]
/
src
/
yaz-socket-manager.cpp
diff --git
a/src/yaz-socket-manager.cpp
b/src/yaz-socket-manager.cpp
index
c3fc491
..
2cb2fde
100644
(file)
--- a/
src/yaz-socket-manager.cpp
+++ b/
src/yaz-socket-manager.cpp
@@
-253,7
+253,10
@@
int SocketManager::processEvent()
while ((res = yaz_poll(fds, no_fds, timeout, 0)) < 0 && pass < 10)
{
if (errno == EINTR)
- continue;
+ {
+ delete [] fds;
+ return 1;
+ }
yaz_log(YLOG_ERRNO|YLOG_WARN, "yaz_poll");
yaz_log(YLOG_WARN, "errno=%d timeout=%d", errno, timeout);
}