]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
NetTrans_multiReceive fixed. Sergey.
authorhadaq <hadaq>
Thu, 24 Feb 2011 13:32:49 +0000 (13:32 +0000)
committerhadaq <hadaq>
Thu, 24 Feb 2011 13:32:49 +0000 (13:32 +0000)
hadaq/netmem.c

index 83eb9ea4b745c952c5e318b438a8a5fcebe27804..174803f8e519fac372681b5c1ac6cea776de8112 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.50 2011-02-14 13:59:40 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.51 2011-02-24 13:32:49 hadaq Exp $";
 
 #define _POSIX_C_SOURCE 199309L
 #define SYSLOG_NAMES
@@ -736,8 +736,8 @@ int main(int argc, char *argv[])
 /*                             } */
 /*                     } */
 
-                       fd_set *fdSet;
-                       fdSet = NetTrans_multiReceive(netTrans, hadTu, hadTuSize, theArgs->nrOfMsgs);
+                       fd_set fdSetS, *fdSet = &fdSetS;
+                       NetTrans_multiReceive(netTrans, fdSet, theArgs->nrOfMsgs);
                        for (i = 0; i < theArgs->nrOfMsgs; i++) {
                                if (FD_ISSET(netTrans[i]->fd, fdSet)) {
                                        if (assembleMsg(netTrans[i], hadTu[i], hadTuSize[i])) {