X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Feventl.c;h=104088c9c080e581f80d68b38b22b3fadfa3c170;hb=281bd093d547534ce4e667214a1881a84a9f3227;hp=1780a0181e8bae3788d2860af4562ce226ef4f39;hpb=a4d2b1d22b135d53d88c96a452a62d3009197d29;p=yaz-moved-to-github.git diff --git a/server/eventl.c b/server/eventl.c index 1780a01..104088c 100644 --- a/server/eventl.c +++ b/server/eventl.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: eventl.c,v $ - * Revision 1.4 1995-03-14 16:59:48 quinn + * Revision 1.5 1995-03-15 08:37:41 quinn + * Now we're pretty much set for nonblocking I/O. + * + * Revision 1.4 1995/03/14 16:59:48 quinn * Bug-fixes * * Revision 1.3 1995/03/14 11:30:14 quinn @@ -78,8 +81,6 @@ int event_loop() continue; return 1; } - if (!res) - continue; for (p = iochans; p; p = nextp) { int force_event = p->force_event; @@ -88,7 +89,7 @@ int event_loop() nextp = p->next; if (FD_ISSET(p->fd, &in) || force_event == EVENT_INPUT) (*p->fun)(p, EVENT_INPUT); - if (!p->destroyed && (FD_ISSET(p->fd, &in) || + if (!p->destroyed && (FD_ISSET(p->fd, &out) || force_event == EVENT_OUTPUT)) (*p->fun)(p, EVENT_OUTPUT); if (!p->destroyed && (FD_ISSET(p->fd, &except) ||