Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index af5eaaca7..cf2a08eb1 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -637,7 +637,8 @@ child_info_fork::handle_fork ()
bool
child_info_spawn::get_parent_handle ()
{
- parent = OpenProcess (PROCESS_VM_READ, false, parent_winpid);
+ parent = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION, FALSE,
+ parent_winpid);
moreinfo->myself_pinfo = NULL;
return !!parent;
}