aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 6b84fc00..30997a21 100644
--- a/proc.c
+++ b/proc.c
@@ -22,7 +22,6 @@
#include <errno.h>
#include <event.h>
-#include <imsg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -189,7 +188,10 @@ proc_start(const char *name, struct event_base *base, int forkflag,
}
logfile(name);
+
+#ifdef HAVE_SETPROCTITLE
setproctitle("%s (%s)", name, socket_path);
+#endif
log_debug("%s started (%ld): socket %s, protocol %d", name,
(long)getpid(), socket_path, PROTOCOL_VERSION);