Exemple #1
0
 def interrupt(self, reason):
     try:
         self.process.signalProcess(self.interruptSignal)
     except KeyError: # Process not started yet
         pass
     except error.ProcessExitedAlready:
         pass
     BuildStep.interrupt(self, reason)
Exemple #2
0
 def interrupt(self, reason):
     try:
         self.process.signalProcess(self.interruptSignal)
     except KeyError:  # Process not started yet
         pass
     except error.ProcessExitedAlready:
         pass
     BuildStep.interrupt(self, reason)
Exemple #3
0
    def interrupt(self, reason):
        if self.running:
            BuildStep.interrupt(self, reason)
            if self.step_status.isWaitingForLocks():
                self.addCompleteLog('interrupt while waiting for locks', str(reason))
            else:
                self.addCompleteLog('interrupt', str(reason))

            self.running = False
            self.finished(EXCEPTION)