Page MenuHomeFreeBSD

D20692.diff
No OneTemporary

D20692.diff

Index: head/sys/compat/linux/linux_misc.c
===================================================================
--- head/sys/compat/linux/linux_misc.c
+++ head/sys/compat/linux/linux_misc.c
@@ -2001,10 +2001,14 @@
flags |= PGET_CANDEBUG;
else
flags |= PGET_CANSEE;
- error = pget(args->pid, flags, &p);
- if (error != 0)
- return (error);
-
+ if (args->pid == 0) {
+ p = td->td_proc;
+ PHOLD(p);
+ } else {
+ error = pget(args->pid, flags, &p);
+ if (error != 0)
+ return (error);
+ }
if (args->old != NULL) {
PROC_LOCK(p);
lim_rlimit_proc(p, which, &rlim);

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 8, 5:52 PM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16529875
Default Alt Text
D20692.diff (579 B)

Event Timeline