-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.148 2011-08-09 11:33:20 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.149 2011-08-09 14:56:08 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#define SYSLOG_NAMES
if (popMaster) {
/* Regular case: delayed pop of last master stream entry after check ok */
HadTuQueue_pop(hadTuQueue[0]);
+ if (HadTuQueue_empty(hadTuQueue[0])) {
+ desHadTuQueue(hadTuQueue[0]);
+ free(hadTuQueue[0]);
+ hadTuQueue[0] = NULL;
+ ShmTrans_free(shmTrans[0]);
+ }
} else {
/* display error and keep last event in hope for later synchronization */
sprintf(msglog, "<W> Master message stream has missed trigger sequence nr:%d. Kept subevent nr %d in master queue",