From a5d882dc4497e5f8e2fdafae2e2145cf384918cd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 4 Dec 2001 19:50:18 +0000 Subject: [PATCH] Added SYNCHRONIZE access to stdio handles. --- scheduler/process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scheduler/process.c b/scheduler/process.c index 3577ee59dd0..4ff1d6dd0f9 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -278,9 +278,9 @@ static BOOL process_init( char *argv[] ) /* no parent, and no new console requested, create a simple console with bare handles to * unix stdio input & output streams (aka simple console) */ - SetStdHandle( STD_INPUT_HANDLE, FILE_DupUnixHandle( 0, GENERIC_READ, TRUE )); - SetStdHandle( STD_OUTPUT_HANDLE, FILE_DupUnixHandle( 1, GENERIC_WRITE, TRUE )); - SetStdHandle( STD_ERROR_HANDLE, FILE_DupUnixHandle( 1, GENERIC_WRITE, TRUE )); + SetStdHandle( STD_INPUT_HANDLE, FILE_DupUnixHandle( 0, GENERIC_READ|SYNCHRONIZE, TRUE )); + SetStdHandle( STD_OUTPUT_HANDLE, FILE_DupUnixHandle( 1, GENERIC_WRITE|SYNCHRONIZE, TRUE )); + SetStdHandle( STD_ERROR_HANDLE, FILE_DupUnixHandle( 1, GENERIC_WRITE|SYNCHRONIZE, TRUE )); } else if (!(create_flags & (DETACHED_PROCESS|CREATE_NEW_CONSOLE))) {