def poll(self, pid):
        """Poll for async process. Returns exitstatus if done."""
        try:
            proc = self._procs[pid]
        except __HOLE__:
            return -errno.ENOENT
        if proc.poll() is None:
            return -errno.EAGAIN
        else:
            del self._procs[pid]
            return proc.exitstatus
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/WindowsServer.py/Win32Agent.poll