summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index bc27b4ff..27880f57 100644
--- a/proc.c
+++ b/proc.c
@@ -17,13 +17,11 @@
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/utsname.h>
#include <errno.h>
#include <event.h>
-#include <imsg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -192,7 +190,10 @@ 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);