aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index 593c1b8b..6a68d74b 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>
@@ -190,8 +188,12 @@ proc_start(const char *name, struct event_base *base, int forkflag,
fatalx("event_reinit failed");
}
+ logfile(name);
+
+#ifdef HAVE_SETPROCTITLE
log_open(name);
setproctitle("%s (%s)", name, socket_path);
+#endif
if (uname(&u) < 0)
memset(&u, 0, sizeof u);