From: Oleg Broytman Date: Sat, 22 Dec 2007 22:01:19 +0000 (+0000) Subject: Redirect stderr to catch 'close failed: [Errno 9] Bad file descriptor' message X-Git-Tag: v4.5.3~250 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=37885488f6f7a735fcacbeb524d9743ac62d5dbb;p=bookmarks_db.git 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 --- 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