From fc3e7da6b07f70c4be4d75f79f92a306520b8a7f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 4 Jul 2011 15:25:36 +0000 Subject: Throughout, open console handles with sharing for reading and writing. * dcrt0.cc (insert_file): Open file with full sharing allowed. * hookapi.cc (find_first_notloaded_dll): Ditto. * spawn.cc (av::fixup): Ditto. --- winsup/cygwin/hookapi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/hookapi.cc') diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 148d88249..b82e4b4c5 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -174,7 +174,7 @@ find_first_notloaded_dll (path_conv& pc) status = NtOpenFile (&h, SYNCHRONIZE | GENERIC_READ, pc.get_object_attr (attr, sec_none_nih), - &io, FILE_SHARE_READ | FILE_SHARE_WRITE, + &io, FILE_SHARE_VALID_FLAGS, FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_FOR_BACKUP_INTENT | FILE_NON_DIRECTORY_FILE); -- cgit v1.2.3