From: Ben Darnell Date: Tue, 5 Jul 2011 03:33:21 +0000 (-0700) Subject: This looks like it's always been backwards. X-Git-Tag: v2.1.0~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d27fc35638a873ea0b1b6fbef3930e1000fdc659;p=thirdparty%2Ftornado.git This looks like it's always been backwards. --- 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: