summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/scheduler.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-09-16 16:43:30 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-09-16 16:43:30 +0000
commitef6596e8f4593a861b83fdb3c384a98e44040729 (patch)
tree894781b05df322a2acc848ebf7c1400320045462 /usr.sbin/smtpd/scheduler.c
parent31daff28c7781420c4a230b1ba546d4fd9a36a69 (diff)
Factorize log_imsg() in imsg_dispatch() instead of in each imsg_callback()'s
and put it out of profiling, so it's not accounted. While there, for PROC_PARENT: - set smtpd_process for PROC_PARENT - use setproctitle() like other processes ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/scheduler.c')
-rw-r--r--usr.sbin/smtpd/scheduler.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/scheduler.c b/usr.sbin/smtpd/scheduler.c
index ffc556a2b22..104d2837542 100644
--- a/usr.sbin/smtpd/scheduler.c
+++ b/usr.sbin/smtpd/scheduler.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scheduler.c,v 1.20 2012/09/11 08:37:52 eric Exp $ */
+/* $OpenBSD: scheduler.c,v 1.21 2012/09/16 16:43:29 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -68,8 +68,6 @@ scheduler_imsg(struct imsgev *iev, struct imsg *imsg)
uint64_t id;
uint32_t msgid;
- log_imsg(PROC_SCHEDULER, iev->proc, imsg);
-
switch (imsg->hdr.type) {
case IMSG_QUEUE_SUBMIT_ENVELOPE: