here's another htop at 10 fps, and here's some of the worst C code I've written (also I got all the raw frames off someone else's Github)

https://git.nullroute.lt/hacks/htopchat.git/tree/badapple

@grawity I know argv[0] is not const but I definitely didn't know it'd be visible outside the process, what the fuck

BRB implementing the worst IPC I've ever thought of

@barometz it's how you have those processes named "nginx: worker process" and "sshd: grawity@pts/0"

(as a side note, afaik OpenBSD 'ps' enforces that such process titles have to start with "origname:" or something like that)

there's also the short 16-char command name, which is mutable separately from argv[0], by writing to /proc/self/comm

@grawity TIL on linux writing to argv[0] changes the process name in /proc / htop
@navi 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"
@grawity
That's the only way I'm watching movies from now on.
@oblomov
@grawity This is why plugging covert channels in a secure server is impractical. Best bad option keeps the channel,bandwidth low.
@grawity wow, this is cool! I mean I've seen ascii video in mplayer some 20 years ago, but never as process names in htop