Close the process, killing it if it is still running.
00156 : """Close the process, killing it if it is still running.""" # If this gets called in the middle of object initialization, # the _closed attribute will not exist. if not hasattr(self, '_closed') or self._closed: return # on cleanup, _active may not be defined! if _active and self in _active: _active.remove(self) if not self._done: self.killsig = self._kill() self._end = time.time() self.status = None self.killsig = signal.SIGTERM self._done = 1 self._output =  self._closed = 1 def fileno(self):