X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=www%2Fwproto.c;h=a258df9f0f655c2ba19e40160cd80c32ad75b791;hb=a6f3beb071fe8c894ee6c846c86296c84f48e3d4;hp=1a41b720d5ba8699888d914a9a6b045376503d56;hpb=d66a4b9debb168d9a03368429bcc933c57553c74;p=egate.git diff --git a/www/wproto.c b/www/wproto.c index 1a41b72..a258df9 100644 --- a/www/wproto.c +++ b/www/wproto.c @@ -41,7 +41,12 @@ * USE OR PERFORMANCE OF THIS SOFTWARE. * * $Log: wproto.c,v $ - * Revision 1.2 1995/10/23 16:55:39 adam + * Revision 1.3 1995/10/27 15:12:10 adam + * IrTcl incorporated in the gateway. + * Better separation of script types. + * Z39.50 gateway scripts entered. + * + * Revision 1.2 1995/10/23 16:55:39 adam * A lot of changes - really. * * Revision 1.1 1995/10/20 11:49:26 adam @@ -249,6 +254,7 @@ int wproto_process(WCLIENT wc, int timeout) top = 0; FD_ZERO(&input); FD_SET(wc->linein, &input); + /* go through select handle list */ while ((rs = select(wc->linein + 1, &input, 0, 0, top)) < 0 && errno == EINTR) ; @@ -264,6 +270,7 @@ int wproto_process(WCLIENT wc, int timeout) timeout); return 0; } + /* determine handle (fifo or user) */ if (read(wc->linein, &toread, sizeof(toread)) < sizeof(toread)) { gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, mod, "wp_proc:len read failed");