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: