Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ArchOversight
1y ago
0 comments
Share
There's the `setproctitle` in FreeBSD that is designed exactly for a process to update the information that is presented to tools such as ps.
https://man.freebsd.org/cgi/man.cgi?query=setproctitle&aprop...
0 comments
default
newest
oldest
asveikau
1y ago
There's also getprogname(3) on a lot of systems, and the __progname variable. I seem to recall this is an area where various Unix like systems have slight variations.
account42
1y ago
prctl(PR_SET_NAME) on Linux - sets the thread name, and the name of the main thread is shown as the process name in most tools.
j
/
k
navigate · click thread line to collapse