-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.161 2012-03-27 07:55:20 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.162 2012-03-29 11:47:27 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#define SYSLOG_NAMES
rfio_closeConnection(theArgs);
#endif
- if (theArgs->resdownscale)
+ if (theArgs->resdownscale) {
+ /* JAM provide closing event in case of stop by signal */
+ void *evt;
+ evt = newEvt(EvtDecoding_64bitAligned, EvtId_runStop);
+ Res_writeFile(evt, runNr, seqNr);
+ deleteEvt(evt);
+ /******/
Res_closeFile(theArgs);
-
+ }
storeInfoStop(argv[0], ourTime, worker, theArgs);
/* store simple stop run info */