Little changes to better support nonblocking I/O
authorSebastian Hammer <quinn@indexdata.com>
Wed, 15 Mar 1995 15:18:51 +0000 (15:18 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Wed, 15 Mar 1995 15:18:51 +0000 (15:18 +0000)
Added backend.h

server/Makefile
server/statserv.c

index 5fcb43d..9f16cc0 100644 (file)
@@ -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:
 
index a0e9e14..a827e24 100644 (file)
@@ -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 <tcpip.h>
 #include <xmosi.h>
 
+#include <unistd.h>
+#include <fcntl.h>
+
 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);