Commit 443c94eb authored by David Wilson's avatar David Wilson

issue #155: core: prevent set_cloexec() use on standard handles

parent 41ae6623
......@@ -185,6 +185,7 @@ def is_blacklisted_import(importer, fullname):
def set_cloexec(fd):
flags = fcntl.fcntl(fd, fcntl.F_GETFD)
assert fd > 2
fcntl.fcntl(fd, fcntl.F_SETFD, flags | fcntl.FD_CLOEXEC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment