Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147922461
D34186.1784797407.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
594 B
Referenced Files
None
Subscribers
None
D34186.1784797407.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 9:03 AM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29237425
Default Alt Text
D34186.1784797407.diff (594 B)
Attached To
Mode
D34186: tty_info: Avoid warning by using logical instead of bitwise operators
Attached
Detach File
Event Timeline
Log In to Comment