Elektrine lite

← Feed

@barometz@social.treehouse.systems

Post #3123628

2025-12-12 12:33 UTC

@grawity@social.treehouse.systems 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

Replies (1)

  • @barometz@social.treehouse.systems 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

    Open ##3123629