Page MenuHomeFreeBSD

D1470.diff
No OneTemporary

D1470.diff

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

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)

Event Timeline