]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Thu, 18 Nov 1999 13:26:06 +0000 (13:26 +0000)
committerhades <hades>
Thu, 18 Nov 1999 13:26:06 +0000 (13:26 +0000)
hadaq/netmem.c

index 1f113db7f8c34627344689dc45672c24559fef35..30571ed39f250e8ac2aa6b9f966c6abee709e6fc 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.4 1999-11-16 15:49:41 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.5 1999-11-18 13:26:06 hades Exp $";
 
 #define _XOPEN_SOURCE
 #include <unistd.h>
@@ -87,9 +87,17 @@ int main(int argc, char *argv[])
 
     sprintf(buf, "ATM:0:%d", i + 50);
     netTrans[i] = NetTrans_create(buf, 0, worker);
+    if (netTrans[i] == NULL) {
+        msglog(LOG_ERR, "%s, %d: %s\n", __FILE__, __LINE__, strerror(errno));
+        exit(EXIT_FAILURE);
+    }
 
     sprintf(buf, "netqueue%d", i);
     shmTrans[i] = ShmTrans_open(buf, 2 * queueSize);
+    if (shmTrans[i] == NULL) {
+        msglog(LOG_ERR, "%s, %d: %s\n", __FILE__, __LINE__, strerror(errno));
+        exit(EXIT_FAILURE);
+    }
 
     hadTu[i] = NULL;
     hadTuSize[i] = queueSize - HadTu_hdrSize();