Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109631657
D20692.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D20692.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20692: Fix prlimit64(2) with pid == 0
Attached
Detach File
Event Timeline
Log In to Comment