def isalive(self):
    if self.child_fd == -1:
      return False
    try:
      os.fstat(self.child_fd)
      return True
    except __HOLE__:
      return False
dataset/ETHPy150Open google/capirca/tools/ldpush/pexpect_connection.py/SocketSpawn.isalive