--- chewbacca/YodaProfiler/src/YodaProfiler.cpp 2009/01/12 18:23:38 1.6 +++ chewbacca/YodaProfiler/src/YodaProfiler.cpp 2011/11/29 13:20:43 1.12 @@ -331,7 +331,7 @@ // If not in verbose mode redirect to /dev/null the stdout and stderr // if ( !beverbose ){ - nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); + nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); dup2(nul,1); dup2(nul,2); }; @@ -391,6 +391,7 @@ if ( !dwinput ) dwinput = 1; staticp = true; autoboot = false; + pedantic = false; }; // if ( filerawname == "" && filerootname != "" ){ @@ -417,7 +418,8 @@ pamDB = new PamelaDBOperations(host,user,password,filerawname,filerootname,boot,tsync,obt0,debug,tlefilename,dwinput,staticp,gpamela,keepenv); pamDB->CheckConnection(); pamDB->LockTables(); - pamDB->OpenL0File(filerootname); + if ( !pamDB->IsChewbacca() ) pamDB->NotChewbacca(boot,tsync,obt0,gpamela); + if ( filerootname != "" ) pamDB->OpenL0File(filerootname); pamDB->SetTag(tag); //------------------------------------------------------------------------------------------- // @@ -544,7 +546,7 @@ //Validate runs //------------------------------------------------------------------------------------------- if ( beverbose ) printf(" 11 => Validate runs (earlier than %s)\n",pamDB->GetCleanTime()); - WAR[9] = pamDB->ValidateRuns(); + WAR[9] = pamDB->ValidateRuns(); //------------------------------------------------------------------------------------------- }; @@ -570,7 +572,8 @@ }; } catch (Int_t exc) { - signal = exc; + // signal = exc; + signal = 1; switch(exc){ case -1: message += " DB connection failure"; break; case -2: message += " Connection failure"; break; @@ -782,7 +785,8 @@ printf("\n"); printf(" WARNING(s):\n%s\n",message.Data()); printf("\n"); - if ( !signal ) signal = 1; + // if ( !signal ) signal = 1; + if ( !signal ) signal = 255; }; // //---------------------------------------------------------------------------------------