fix in new terminate method
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Nov 2009 16:51:32 +0000 (16:51 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Nov 2009 16:51:32 +0000 (16:51 +0000)
SHUTTLE/AliShuttleTrigger.cxx

index e4225b9..1f10af5 100644 (file)
@@ -217,7 +217,7 @@ void AliShuttleTrigger::CheckTerminate()
        if (strlen(fConfig->GetTerminateFilePath()) == 0)
                return;
 
-       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()))
+       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()) == kFALSE)
        {
                AliInfo("Terminate file exists. Terminating Shuttle...");
                fTerminate = kTRUE;
@@ -287,6 +287,7 @@ void AliShuttleTrigger::Run() {
                }
        
                Collect();
+               CheckTerminate();
        }
 
        delete notifier;