summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/queue.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-24 14:38:57 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-24 14:38:57 +0000
commit72f320d789e26f1a6d777dd158641de3038990ac (patch)
tree6cf0ceac33f100e5f18aa19632727121d498c51c /usr.sbin/smtpd/queue.c
parent576522606d25ccb68ce580aa9b2d77ae382c9c2d (diff)
Parent process forks 3 types of processes, track them all in a single tree
using newly introduced child struct. Manage process titles centrally in struct smtpd. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/queue.c')
-rw-r--r--usr.sbin/smtpd/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index efd11dbe7f7..d8798802375 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.64 2009/05/24 14:22:23 jacekm Exp $ */
+/* $OpenBSD: queue.c,v 1.65 2009/05/24 14:38:56 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -563,8 +563,8 @@ queue(struct smtpd *env)
#warning disabling privilege revocation and chroot in DEBUG MODE
#endif
- setproctitle("queue handler");
smtpd_process = PROC_QUEUE;
+ setproctitle("%s", env->sc_title[smtpd_process]);
#ifndef DEBUG
if (setgroups(1, &pw->pw_gid) ||