process.pidof(3lua): add note regarding pgrep(1) usage

This commit is contained in:
Jeremy Baxter 2024-04-06 19:59:48 +13:00
parent 1a5a54d808
commit 82c47c778c

View file

@ -14,6 +14,16 @@ the first process found with the command name _cmd_ is returned.
If a process could not be found, *process.pidof* returns nil.
# BUGS
*process.pidof* depends on the nonportable program pgrep(1).
This program can be found in the procps-ng package on Linux
included in most distributions, or as part of the base system
on OpenBSD, NetBSD and FreeBSD.
Work is being done to free *process.pidof* of this burden;
follow along with the tracking ticket for any updates
<*https://todo.sr.ht/~jeremy/callisto/7*>.
# EXAMPLES
Flawed implementation of *process.pid*: