Fix regression caused by use of process local file descriptors in windows that did not have their name attribute set correctly

This commit is contained in:
Kovid Goyal 2010-10-02 10:58:57 -06:00
parent 8194487abb
commit 5f42106d46

View File

@ -139,6 +139,7 @@ if not _run_once:
flags |= os.O_NOINHERIT
fd = os.open(name, flags)
ans = os.fdopen(fd, mode, bufsize)
ans.name = name
else:
import fcntl
try: