Remove sleep queue hack, it is no longer needed with current sleep queue.
Actually, it causes process to hang when it is being debugged. PR: gnu/77818
This commit is contained in:
parent
e998be30e5
commit
3fbc6983fa
@ -929,14 +929,6 @@ thread_suspend_one(struct thread *td)
|
||||
p->p_suspcount++;
|
||||
TD_SET_SUSPENDED(td);
|
||||
TAILQ_INSERT_TAIL(&p->p_suspended, td, td_runq);
|
||||
/*
|
||||
* Hack: If we are suspending but are on the sleep queue
|
||||
* then we are in msleep or the cv equivalent. We
|
||||
* want to look like we have two Inhibitors.
|
||||
* May already be set.. doesn't matter.
|
||||
*/
|
||||
if (TD_ON_SLEEPQ(td))
|
||||
TD_SET_SLEEPING(td);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user