diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c6851787e..0a78372fc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-11-04 Christopher Faylor + + * pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin. + 2002-11-04 Christopher Faylor * pinfo.cc (_pinfo::commune_send): Set priority low when sleeping, 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); }