def poll(self, pid):
        """Poll for async process.

        Returns exitstatus if done, -ENOENT if no such pid is managed, or -EAGAIN
        if pid is still running.
        """
        try:
            sts  = self._status[pid]
        except __HOLE__:
            return -errno.ENOENT
        if sts is None:
            return -errno.EAGAIN
        else: # finished
            del self._status[pid]
            return sts
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/PosixServer.py/PosixAgent.poll