diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-05 07:52:52 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-05 07:52:52 +0300 |
commit | ef1bf288df0702b81e617227346e110888d4480f (patch) | |
tree | 709d53b79ad569eedd8ab28a6173631d507be5d2 /winsup | |
parent | d2637322384d97148007decb03d4af6f87159752 (diff) |
* pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c6851787e..0a78372fc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2002-11-04 Christopher Faylor <cgf@redhat.com> + * pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin. + +2002-11-04 Christopher Faylor <cgf@redhat.com> + * pinfo.cc (_pinfo::commune_send): Set priority low when sleeping, waiting for commune completion so that we don't spin waiting for lower priority processes. diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index f47e3bd2d..d4764bced 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); } |