Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::MultiProc::copen::_ProcHandle::_cleanup_child (   self  )  [private]

Do necessary cleanup functions after child is finished running.

Definition at line 226 of file copen.py.

00226                             :
        """Do necessary cleanup functions after child is finished running."""
        if self._done:

        # read the output
        self._output = self._cread.readlines()
        if self._errread:
            error = self._errread.read()
            if error:
                raise AssertionError, "Error in child process:\n\n%s" % error
                # It would be nice to be able to save the exception
                # and traceback somehow, and raise it in the parent.
                #raise etype, value
        # Remove myself from the active list.
        if _active and self in _active:

        pid, ind = os.waitpid(self.pid, 0)
        self.status, self.killsig = ind >> 8, ind & 0xff
        self._end = time.time()
        self._done = 1

class _PickleHandle:

Generated by  Doxygen 1.6.0   Back to index