Erik Antelman <eantel...@acm.org> added the comment: The really annoying this about handle inheritance is that even if a subprocess is never referencing or using logging there can be an open file handle conflict due to the default inheratence.
Another tack from modifying Popen, I looked at the forking.py of multiprocessing and observed the techniques for changing the inheratance attribute of files handles using the _subprocess wrapper to the NT DuplicateHandle call. Then by replacing the _open of the FileHandler to ensure handles are open non-inheritable I can ensure that log files are not inherited. This preserves the behavior of everything else. I attached the NT/Multiprocessing safe version of a RotatingFileHandler class ---------- nosy: +eantelman Added file: http://bugs.python.org/file14420/NTSafeLogging.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4749> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com