From: Sebastian Hammer Date: Wed, 15 Mar 1995 15:18:51 +0000 (+0000) Subject: Little changes to better support nonblocking I/O X-Git-Tag: YAZ.1.8~1126 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=9e7c99310963a811885820ccccf9e96fae6ecf8b Little changes to better support nonblocking I/O Added backend.h --- diff --git a/server/Makefile b/server/Makefile index 5fcb43d..9f16cc0 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,7 +1,7 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.8 1995-03-15 11:18:17 quinn Exp $ +# $Id: Makefile,v 1.9 1995-03-15 15:18:51 quinn Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. -I../asn -I../odr -I../yazlib -I../../egate/include\ @@ -20,7 +20,7 @@ PROGO=statserv.o session.o all: $(LIBDIR) $(LIB) $(PROG) $(PROG): $(LIB) $(PROGO) - $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) + $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) pwrite.o alll: diff --git a/server/statserv.c b/server/statserv.c index a0e9e14..a827e24 100644 --- a/server/statserv.c +++ b/server/statserv.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: statserv.c,v $ - * Revision 1.5 1995-03-15 08:37:45 quinn + * Revision 1.6 1995-03-15 15:18:52 quinn + * Little changes to better support nonblocking I/O + * Added backend.h + * + * Revision 1.5 1995/03/15 08:37:45 quinn * Now we're pretty much set for nonblocking I/O. * * Revision 1.4 1995/03/14 16:59:48 quinn @@ -36,6 +40,9 @@ #include #include +#include +#include + static char *me = ""; #define DEFAULT_LISTENER "tcp:localhost:9999" @@ -134,7 +141,7 @@ void add_listener(char *where) fprintf(stderr, "You must specify either 'osi:' or 'tcp:'.\n"); exit(1); } - if (!(l = cs_create(type, 1))) + if (!(l = cs_create(type, 0))) { fprintf(stderr, "Failed to create listener\n"); exit(1);