def SetNonblockFlag(fd, enable):
  flags = fcntl.fcntl(fd, fcntl.F_GETFL)

  if enable:
    flags |= os.O_NONBLOCK
  else:
    flags &= ~os.O_NONBLOCK

  fcntl.fcntl(fd, fcntl.F_SETFL, flags)
Return True if the named service is enabled, false otherwise
dataset/ETHPy150Open ganeti/ganeti/lib/utils/wrapper.py/SetNonblockFlag--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/netbsdservice.py/enabled