]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Treat disfunction of online event server as warning, not as
authorhades <hades>
Tue, 28 Aug 2001 12:06:18 +0000 (12:06 +0000)
committerhades <hades>
Tue, 28 Aug 2001 12:06:18 +0000 (12:06 +0000)
fatal

hadaq/evtbuild.c
hadaq/online.c

index 9e6bc3a3c0cfaa75e35f0879cfdb2c3659147bf9..02264ccf0a44befbfa20d5aeaf47a50fc433c102 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.29 2001-06-06 15:49:03 hades Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.30 2001-08-28 12:06:18 hades Exp $";
 
 
 #define _POSIX_C_SOURCE 199309L
@@ -331,8 +331,7 @@ int main(int argc, char *argv[])
        }
 
        if (-1 == initOnline()) {
-               msglog(LOG_ERR, "unable to initialize online service\n");
-               exit(EXIT_FAILURE);
+               msglog(LOG_WARNING, "unable to initialize online service\n");
        }
        if (theArgs->nrOfMsgs == 0) {
                /* 
index 8ffeede0c80aac3ec0c90588cb27d3fe8836e71e..39486c13965944d6e1fb112567cabc41788d8e65 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/online.c,v 6.4 2001-03-07 16:02:44 hades Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/online.c,v 6.5 2001-08-28 12:06:18 hades Exp $";
 
 
 #define _GNU_SOURCE
@@ -28,11 +28,11 @@ initOnline()
        transp = svctcp_create(RPC_ANYSOCK, 0, 0);
        if (transp == NULL) {
                fprintf(stderr, "cannot create tcp service.");
-               exit(1);
+               return -1;
        }
        if (!svc_register(transp, DAQPROG, DAQVERS, daqprog_1, IPPROTO_TCP)) {
                fprintf(stderr, "unable to register (DAQPROG, DAQVERS, tcp).");
-               exit(1);
+               return -1;
        }
        return 0;
 }