Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141003071
D39383.id119758.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
714 B
Referenced Files
None
Subscribers
None
D39383.id119758.diff
View Options
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
--- a/sys/fs/pseudofs/pseudofs_vnops.c
+++ b/sys/fs/pseudofs/pseudofs_vnops.c
@@ -90,21 +90,17 @@
static int
pfs_visible_proc(struct thread *td, struct pfs_node *pn, struct proc *proc)
{
- int visible;
if (proc == NULL)
return (0);
PROC_LOCK_ASSERT(proc, MA_OWNED);
- visible = ((proc->p_flag & P_WEXIT) == 0);
- if (visible)
- visible = (p_cansee(td, proc) == 0);
- if (visible && pn->pn_vis != NULL)
- visible = pn_vis(td, proc, pn);
- if (!visible)
+ if ((proc->p_flag & P_WEXIT) != 0)
return (0);
- return (1);
+ if (p_cansee(td, proc) != 0)
+ return (0);
+ return (pn_vis(td, proc, pn));
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 3:28 PM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27415148
Default Alt Text
D39383.id119758.diff (714 B)
Attached To
Mode
D39383: pseudofs: Simplify pfs_visible_proc
Attached
Detach File
Event Timeline
Log In to Comment