summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/control.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/control.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/control.c')
-rw-r--r--usr.sbin/smtpd/control.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index c0b34978dd0..eecd564d7ba 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.72 2012/08/25 22:03:26 gilles Exp $ */
+/* $OpenBSD: control.c,v 1.73 2012/09/16 16:43:28 chl Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -74,8 +74,6 @@ control_imsg(struct imsgev *iev, struct imsg *imsg)
char *key;
struct stat_value val;
- log_imsg(PROC_CONTROL, iev->proc, imsg);
-
if (iev->proc == PROC_SMTP) {
switch (imsg->hdr.type) {
case IMSG_SMTP_ENQUEUE: