def _set_non_inheritable_non_atomic(fd):
        """Set the close-on-exec flag on the given file descriptor."""
        flags = fcntl(fd, F_GETFD)
        fcntl(fd, F_SETFD, flags | FD_CLOEXEC)
Set the close-on-exec flag on the given file descriptor.
stackoverflow/venv/lib/python3.6/site-packages/pymongo/pool.py