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:
            return

        # read the output
        self._output = self._cread.readlines()
        self._cread.close()
        if self._errread:
            error = self._errread.read()
            self._errread.close()
            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:
            _active.remove(self)

        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