Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169396851
D1470.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
D1470.diff
View Options
Index: head/sys/kern/kern_time.c
===================================================================
--- head/sys/kern/kern_time.c
+++ head/sys/kern/kern_time.c
@@ -200,13 +200,10 @@
switch (which) {
case CPUCLOCK_WHICH_PID:
if (id != 0) {
- p = pfind(id);
- if (p == NULL)
- return (ESRCH);
- error = p_cansee(td, p);
- PROC_UNLOCK(p);
+ error = pget(id, PGET_CANSEE | PGET_NOTID, &p);
if (error != 0)
return (error);
+ PROC_UNLOCK(p);
pid = id;
} else {
pid = td->td_proc->p_pid;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 10:20 AM (6 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37944454
Default Alt Text
D1470.diff (524 B)
Attached To
Mode
D1470: Finish r253325.
Attached
Detach File
Event Timeline
Log In to Comment