-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.146 2011-04-12 16:34:40 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.147 2011-08-05 08:31:39 hadaq Exp $";
 
 #define _POSIX_C_SOURCE 199309L
 #define SYSLOG_NAMES
 #define MAXINPATH 100
 #define DAQVERSION 2                   /* needed by Hydra unpackers */
 
+#define RUNID_INFO_DT  600             /* time in s until not available runid info is logged  */
+
 #define NEVTIDS 64UL                   /* must be 2^n */
 #define NEVTIDS_IN_FILE 0UL            /* must be 2^n */
 
 {
        unsigned long myRunId = 0;
        char buf[_POSIX_PATH_MAX];
+       char msg[256];
        struct timespec tv = { 0, 1e+8 };
 
        static time_t t0 = 0;
                        if (myRunId == 0) {
                                t = time(NULL);
                                dT = t - t0;
-                               if (dT > 2) {
-                                       storeLogInfo(my, "<I> getRunId: Still waiting for runId from EPICS IOC...");
-                                       printf("Still waiting for runId from EPICS IOC...\n");
+                               if (dT > RUNID_INFO_DT) {
+                                       snprintf(msg, 255, "<I> getRunId: Still waiting for runId from EPICS IOC after %d s...", dT);
+                                       storeLogInfo(my, msg);
+                                       printf("%s \n", msg);
                                        t0 = t;
                                }
 
 #ifdef RFIO
 static int rfio_openConnection(TheArgs *theArgs, TheStats *theStats)
 {
+       /* JAM: disable rfio when option "no file" is set */
+       if (strcmp(theArgs->outDev, "null") == 0) {
+               storeLogInfo(theArgs, "<I> NO FILE - rfio is disabled");
+               fRemote = NULL;
+               return 0;
+       }
 
        if ((strcmp(theArgs->rfioRemotePath, "") != 0)) {
                char rfioBase[128] = "";