summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-05-13 20:12:14 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-05-13 20:12:14 (GMT)
commitb8ba51c52564ddf72a4f3dc229c35e081937aafa (patch)
tree22167df6121b24fee7594b07790d7740993ac5cf
parent0a5aa629ffffda4aa6b960399ff19d59b6b76dd6 (diff)
downloadSCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.zip
SCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.tar.gz
SCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.tar.bz2
Restore deleted function _scons_file() in win32.py.
This is causing most tests to fail in win32. See if this resolves.
-rw-r--r--src/engine/SCons/Platform/win32.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/SCons/Platform/win32.py b/src/engine/SCons/Platform/win32.py
index 8ba8218..269007d 100644
--- a/src/engine/SCons/Platform/win32.py
+++ b/src/engine/SCons/Platform/win32.py
@@ -63,6 +63,13 @@ else:
_builtin_file = file
_builtin_open = open
+ class _scons_file(_builtin_file):
+ def __init__(self, *args, **kw):
+ _builtin_file.__init__(self, *args, **kw)
+ win32api.SetHandleInformation(msvcrt.get_osfhandle(self.fileno()),
+ win32con.HANDLE_FLAG_INHERIT, 0)
+
+
def _scons_open(*args, **kw):
fp = _builtin_open(*args, **kw)
win32api.SetHandleInformation(msvcrt.get_osfhandle(fp.fileno()),