mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
lwp-track-qwaiting-second-try-20040728
FIXES 5616 track qwaiting lwps rather than potentially leaking them
This commit is contained in:
parent
b20129a337
commit
40d54d5dd1
@ -237,7 +237,7 @@ LWP_QWait(void)
|
||||
{
|
||||
register PROCESS tp;
|
||||
(tp = lwp_cpptr)->status = QWAITING;
|
||||
move(tp, &runnable[tp->priority], qwaiting);
|
||||
move(tp, &runnable[tp->priority], &qwaiting);
|
||||
Set_LWP_RC();
|
||||
return LWP_SUCCESS;
|
||||
}
|
||||
@ -248,7 +248,7 @@ LWP_QSignal(pid)
|
||||
{
|
||||
if (pid->status == QWAITING) {
|
||||
pid->status = READY;
|
||||
move(pid, qwaiting, &runnable[pid->priority]);
|
||||
move(pid, &qwaiting, &runnable[pid->priority]);
|
||||
return LWP_SUCCESS;
|
||||
} else
|
||||
return LWP_ENOWAIT;
|
||||
|
Loading…
Reference in New Issue
Block a user