From 37885488f6f7a735fcacbeb524d9743ac62d5dbb Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 22 Dec 2007 22:01:19 +0000 Subject: [PATCH] Redirect stderr to catch 'close failed: [Errno 9] Bad file descriptor' message from os.close() in Subprocess.die(). git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@126 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/bkmk_rforking.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Robots/bkmk_rforking.py b/Robots/bkmk_rforking.py index 4693f52..da257f6 100644 --- a/Robots/bkmk_rforking.py +++ b/Robots/bkmk_rforking.py @@ -14,6 +14,9 @@ except ImportError: import sys, os from subproc import Subprocess, RecordFile +# This is to catch 'close failed: [Errno 9] Bad file descriptor' +# message from os.close() in Subprocess.die(). +sys.stderr = open("err.log", 'w') check_subp = None subp_pipe = None -- 2.39.5