Cygwin: spawn: revert incorrect restriction of permissions

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-01-27 22:42:41 +01:00
parent 69cc7a0686
commit 3b21333172
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}