]> granicus.if.org Git - procps-ng/commit
doc: Mention fatal_proc_unmounted limitations
authorCraig Small <csmall@dropbear.xyz>
Wed, 27 Jul 2022 11:12:10 +0000 (21:12 +1000)
committerCraig Small <csmall@dropbear.xyz>
Wed, 27 Jul 2022 11:12:10 +0000 (21:12 +1000)
commit7d44c94317941c1cd3d41325a0128010fe5d1331
tree40bc8f502b2e0202d0647b9060d0277bb075831c
parent80e2a7a682a3f351693f39120b19a6c061b023af
doc: Mention fatal_proc_unmounted limitations

Discovered this while trying to port programs that use the deleted
libprocps function look_up_our_self() which can be found with the
fatal_proc_unmounted() function.

While procps_pids_new() will allow you to specify any items you
care to think of, a subsequent call to fatal_proc_unmounted()
will only fill in the values found in /proc/self/stat.

Added a caveat to the procps_pids manpage pointing out this
limitation.

References:
 https://salsa.debian.org/xorg-team/app/apitrace/-/blob/debian-unstable/lib/os/os_memory.hpp#L44
 https://gitlab.com/-/snippets/2377884

Signed-off-by: Craig Small <csmall@dropbear.xyz>
doc/procps_pids.3