summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/sched.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc
index e0bd02d59..bb608a5cb 100644
--- a/winsup/cygwin/sched.cc
+++ b/winsup/cygwin/sched.cc
@@ -91,8 +91,7 @@ sched_getparam (pid_t pid, struct sched_param *param)
set_errno (ESRCH);
return -1;
}
- process = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION, FALSE,
- p->dwProcessId);
+ process = OpenProcess (PROCESS_QUERY_INFORMATION, FALSE, p->dwProcessId);
if (!process)
{
set_errno (ESRCH);