This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] sched.cc: Use PROCESS_QUERY_INFORMATION for now
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 3 Jun 2016 08:31:23 -0000
- Subject: [newlib-cygwin] sched.cc: Use PROCESS_QUERY_INFORMATION for now
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b0b99e39dcea99349286cebf9a2851c0109a0393
commit b0b99e39dcea99349286cebf9a2851c0109a0393
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Jun 3 10:28:44 2016 +0200
sched.cc: Use PROCESS_QUERY_INFORMATION for now
Temporarily revert to use PROCESS_QUERY_INFORMATION instead of
PROCESS_QUERY_LIMITED_INFORMATION to make sure every aspect of the
next release is still XP/2003 compatible.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/sched.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc
index e0bd02d..bb608a5 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);