aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index cf2a08e..6b564dc 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -637,8 +637,7 @@ child_info_fork::handle_fork ()
bool
child_info_spawn::get_parent_handle ()
{
- parent = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION, FALSE,
- parent_winpid);
+ parent = OpenProcess (PROCESS_VM_READ, FALSE, parent_winpid);
moreinfo->myself_pinfo = NULL;
return !!parent;
}