def SetCloseOnExecFlag(fd, enable):
  flags = fcntl.fcntl(fd, fcntl.F_GETFD)

  if enable:
    flags |= fcntl.FD_CLOEXEC
  else:
    flags &= ~fcntl.FD_CLOEXEC

  fcntl.fcntl(fd, fcntl.F_SETFD, flags)
Get uniform grid between corners
dataset/ETHPy150Open ganeti/ganeti/lib/utils/wrapper.py/SetCloseOnExecFlag--crossover with--dataset/ETHPy150Open mrterry/yoink/yoink/interp.py/get_corner_grid