From 0380ed63ac1e3772590ab19aa22b034173aa932d Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 24 Feb 2011 13:32:49 +0000 Subject: [PATCH] NetTrans_multiReceive fixed. Sergey. --- hadaq/netmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hadaq/netmem.c b/hadaq/netmem.c index 83eb9ea..174803f 100644 --- a/hadaq/netmem.c +++ b/hadaq/netmem.c @@ -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])) { -- 2.43.0