示例#1
0
 def processExited(self, code):
     if RUNNING_BSD and not self.exited:
         # on FreeBSD, we have to waitpid() twice
         # to avoid zombi process!?
         self.exited = True
         self.waitExit()
     self._notRunning()
     return ProcessExit(self, exitcode=code)
示例#2
0
 def processKilled(self, signum):
     debug("%s killed by signal %s" % (self, signalName(signum)))
     self._notRunning()
     return ProcessExit(self, signum=signum)
示例#3
0
 def processExited(self, code):
     debug("%s exited with code %s" % (self, code))
     self._notRunning()
     return ProcessExit(self, exitcode=code)
示例#4
0
 def processTerminated(self):
     debug("%s terminated abnormally" % self)
     self._notRunning()
     return ProcessExit(self)
示例#5
0
 def processKilled(self, signum):
     self._notRunning()
     return ProcessExit(self, signum=signum)
示例#6
0
 def processTerminated(self):
     self._notRunning()
     return ProcessExit(self)