def _set_cloexec(fd):
        try:
            flags = _fcntl.fcntl(fd, _fcntl.F_GETFD, 0)
        except __HOLE__:
            pass
        else:
            # flags read successfully, modify
            flags |= _fcntl.FD_CLOEXEC
            _fcntl.fcntl(fd, _fcntl.F_SETFD, flags)
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/python/Lib/tempfile.py/_set_cloexec