Page MenuHomeFreeBSD

pseudofs: Simplify pfs_visible_proc
ClosedPublic

Authored by dchagin on Apr 1 2023, 3:20 PM.
Referenced Files
Unknown Object (File)
Sun, Jan 12, 11:43 AM
Unknown Object (File)
Sat, Dec 28, 5:11 AM
Unknown Object (File)
Nov 18 2024, 6:08 PM
Unknown Object (File)
Nov 13 2024, 7:54 AM
Unknown Object (File)
Nov 7 2024, 10:21 AM
Unknown Object (File)
Nov 7 2024, 10:21 AM
Unknown Object (File)
Nov 7 2024, 10:20 AM
Unknown Object (File)
Nov 7 2024, 10:20 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Perhaps better to drop visible entirely:

if (proc->p_flag & P_WEXIT)
        return (0);
if (p_cansee(td, proc) != 0)
        return (0);
if (pn->pn_vis && pn_vis(td, proc, pn) == 0)
        return (0);
return (1);
This revision is now accepted and ready to land.Apr 1 2023, 9:58 PM
This revision was automatically updated to reflect the committed changes.