aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/pinfo.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-05 04:52:52 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-05 04:52:52 +0000
commitef1bf288df0702b81e617227346e110888d4480f (patch)
tree709d53b79ad569eedd8ab28a6173631d507be5d2 /winsup/cygwin/pinfo.cc
parentd2637322384d97148007decb03d4af6f87159752 (diff)
downloadnewlib-ef1bf288df0702b81e617227346e110888d4480f.zip
newlib-ef1bf288df0702b81e617227346e110888d4480f.tar.gz
newlib-ef1bf288df0702b81e617227346e110888d4480f.tar.bz2
* pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index f47e3bd..d4764bc 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -369,7 +369,8 @@ _pinfo::commune_send (DWORD code)
break;
else
{
- DWORD prio = SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
+ DWORD prio = GetThreadPriority (GetCurrentThread ());
+ SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
Sleep (0);
SetThreadPriority (GetCurrentThread (), prio);
}