±0 on setproctitle
±0 on setproctitle
Posted Oct 7, 2011 23:16 UTC (Fri) by jengelh (subscriber, #33263)In reply to: +1 on setproctitle by dskoll
Parent article: A Plumber's Wish List for Linux
setproctitle you already have, sort of.
void setproctitle(int argc, char **argv, char *title)
{
strlcpy(argv[0], title, &argv[argc-1][strlen(argv[argc-1])] - argv[0]);
}
or so is how it is currently done, for the glibc-linux platform.
