getprogname() and setproctitle() on Linux.

This commit is contained in:
Nicholas Marriott
2016-05-27 18:04:25 +01:00
parent 20d97eb849
commit cfef0c6658
6 changed files with 154 additions and 4 deletions

2
proc.c
View File

@ -191,9 +191,7 @@ proc_start(const char *name, struct event_base *base, int forkflag,
log_open(name);
#ifdef HAVE_SETPROCTITLE
setproctitle("%s (%s)", name, socket_path);
#endif
if (uname(&u) < 0)
memset(&u, 0, sizeof u);