From d27fc35638a873ea0b1b6fbef3930e1000fdc659 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Mon, 4 Jul 2011 20:33:21 -0700 Subject: [PATCH] This looks like it's always been backwards. --- tornado/platform/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/platform/windows.py b/tornado/platform/windows.py index f3efa8e89..7e8bedc2c 100644 --- a/tornado/platform/windows.py +++ b/tornado/platform/windows.py @@ -39,7 +39,7 @@ def fcntl(fd, op, arg=0): elif op == F_SETFD: # Check that the flag is CLOEXEC and translate if arg == FD_CLOEXEC: - success = SetHandleInformation(fd, HANDLE_FLAG_INHERIT, arg) + success = SetHandleInformation(fd, HANDLE_FLAG_INHERIT, 0) if not success: raise ctypes.GetLastError() else: -- 2.47.2