* sigproc.cc (sig_send): Temporarily set priority to highest while sending a
signal.
This commit is contained in:
parent
adbc0b0aa7
commit
b528f63495
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Feb 29 00:46:09 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* sigproc.cc (sig_send): Temporarily set priority to highest while
|
||||||
|
sending a signal.
|
||||||
|
|
||||||
Mon Feb 28 11:23:29 2000 Christopher Faylor <cgf@cygnus.com>
|
Mon Feb 28 11:23:29 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* pinfo.cc (set_myself): Add build date to strace output.
|
* pinfo.cc (set_myself): Add build date to strace output.
|
||||||
|
|
|
@ -776,7 +776,10 @@ sig_send (pinfo *p, int sig)
|
||||||
|
|
||||||
/* Notify the process that a signal has arrived.
|
/* Notify the process that a signal has arrived.
|
||||||
*/
|
*/
|
||||||
|
int prio;
|
||||||
SetLastError (0);
|
SetLastError (0);
|
||||||
|
prio = GetThreadPriority (GetCurrentThread ());
|
||||||
|
(void) SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
|
||||||
if (!ReleaseSemaphore (thiscatch, 1, NULL) && (int) GetLastError () > 0)
|
if (!ReleaseSemaphore (thiscatch, 1, NULL) && (int) GetLastError () > 0)
|
||||||
{
|
{
|
||||||
/* Couldn't signal the semaphore. This probably means that the
|
/* Couldn't signal the semaphore. This probably means that the
|
||||||
|
@ -826,6 +829,8 @@ sig_send (pinfo *p, int sig)
|
||||||
rc = WAIT_OBJECT_0;
|
rc = WAIT_OBJECT_0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetThreadPriority (GetCurrentThread (), prio);
|
||||||
|
|
||||||
if (rc == WAIT_OBJECT_0)
|
if (rc == WAIT_OBJECT_0)
|
||||||
rc = 0; // Successful exit
|
rc = 0; // Successful exit
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue