projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zoomtst3: print event name
[yaz-moved-to-github.git]
/
src
/
eventl.c
diff --git
a/src/eventl.c
b/src/eventl.c
index
e8f6324
..
b5ef123
100644
(file)
--- a/
src/eventl.c
+++ b/
src/eventl.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-88,11
+88,6
@@
int iochan_event_loop(IOCHAN *iochans)
int res;
time_t now = time(0);
int res;
time_t now = time(0);
- if (statserv_must_terminate())
- {
- for (p = *iochans; p; p = p->next)
- p->force_event = EVENT_TIMEOUT;
- }
for (p = *iochans; p; p = p->next)
no_fds++;
fds = (struct yaz_poll_fd *) xmalloc(no_fds * sizeof(*fds));
for (p = *iochans; p; p = p->next)
no_fds++;
fds = (struct yaz_poll_fd *) xmalloc(no_fds * sizeof(*fds));
@@
-117,8
+112,9
@@
int iochan_event_loop(IOCHAN *iochans)
w = p->max_idle;
else
w = ftime - now;
w = p->max_idle;
else
w = ftime - now;
+ /* tv_sec will be minimum wait.. */
if (w < tv_sec)
if (w < tv_sec)
- tv_sec = w;
+ tv_sec = (int) w; /* can hold it because w < tv_sec */
}
fds[i].fd = p->fd;
fds[i].input_mask = input_mask;
}
fds[i].fd = p->fd;
fds[i].input_mask = input_mask;
@@
-128,11
+124,6
@@
int iochan_event_loop(IOCHAN *iochans)
{
if (yaz_errno() == EINTR)
{
{
if (yaz_errno() == EINTR)
{
- if (statserv_must_terminate())
- {
- for (p = *iochans; p; p = p->next)
- p->force_event = EVENT_TIMEOUT;
- }
xfree(fds);
continue;
}
xfree(fds);
continue;
}