From ef6596e8f4593a861b83fdb3c384a98e44040729 Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Sun, 16 Sep 2012 16:43:30 +0000 Subject: 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@ --- usr.sbin/smtpd/scheduler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin/smtpd/scheduler.c') 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 @@ -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: -- cgit v1.2.3