Re:Why bother with argv[0]?
by asveikau on Tuesday September 03, 2024 @12:02PM
(#41436255)
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.
https://man.freebsd.org/cgi/man.cgi?query=setproctitle&aprop...