Post #3123630
2025-12-12 12:34 UTC
@grawity@social.treehouse.systems TIL on linux writing to argv[0] changes the process name in /proc / htop
Replies (1)
-
@grawity@social.treehouse.systems 2025-12-12 12:40
@navi@social.vlhl.dev yeah – some other Unixes have a whole setproctitle() API for that, on Linux it's relatively horrible – but it's how e.g. sshd renames itself to "sshd: foo@pts/0" in ps, and some programs like /bin/mariadb use it to scrub visible passwords from "mysql -uroot -pMyPasswd"