Page MenuHomeFreeBSD

D34186.diff
No OneTemporary

D34186.diff

diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c
--- a/sys/kern/tty_info.c
+++ b/sys/kern/tty_info.c
@@ -121,12 +121,12 @@
* Fetch running stats, pctcpu usage, and interruptable flag.
*/
thread_lock(td);
- runa = TD_IS_RUNNING(td) | TD_ON_RUNQ(td);
+ runa = TD_IS_RUNNING(td) || TD_ON_RUNQ(td);
slpa = td->td_flags & TDF_SINTR;
esta = sched_pctcpu(td);
thread_unlock(td);
thread_lock(td2);
- runb = TD_IS_RUNNING(td2) | TD_ON_RUNQ(td2);
+ runb = TD_IS_RUNNING(td2) || TD_ON_RUNQ(td2);
estb = sched_pctcpu(td2);
slpb = td2->td_flags & TDF_SINTR;
thread_unlock(td2);

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 7, 9:46 AM (3 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31024084
Default Alt Text
D34186.diff (594 B)

Event Timeline