summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-06-03 10:28:44 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-06-03 10:28:44 +0200
commitb0b99e39dcea99349286cebf9a2851c0109a0393 (patch)
tree3930da9ea6f8f0f81814a2c372baeec76dc71a07
parent211a942ad25224447dc02d67a31e12dcdbd6b323 (diff)
downloadcygnal-b0b99e39dcea99349286cebf9a2851c0109a0393.tar.gz
cygnal-b0b99e39dcea99349286cebf9a2851c0109a0393.tar.bz2
cygnal-b0b99e39dcea99349286cebf9a2851c0109a0393.zip
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>
-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);