From 5f42106d469260555aab28f5498093bfb795c773 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 Oct 2010 10:58:57 -0600 Subject: [PATCH] Fix regression caused by use of process local file descriptors in windows that did not have their name attribute set correctly --- src/calibre/startup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/startup.py b/src/calibre/startup.py index 9d5c4b51fc..c202104d77 100644 --- a/src/calibre/startup.py +++ b/src/calibre/startup.py @@ -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: