summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Action.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r--src/engine/SCons/Action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index f97d564..fd859ad 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -785,7 +785,7 @@ def _subproc(scons_env, cmd, error = 'ignore', **kw):
kw[stream] = DEVNULL
else:
if sys.platform == 'win32':
- kw[stream] = msvcrt.get_osfhandle(open(os.devnull, "r+"))
+ kw[stream] = msvcrt.get_osfhandle(os.open(os.devnull, os.O_RDWR))
else:
kw[stream] = open(os.devnull, "r+")