diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-24 14:38:57 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-24 14:38:57 +0000 |
commit | 72f320d789e26f1a6d777dd158641de3038990ac (patch) | |
tree | 6cf0ceac33f100e5f18aa19632727121d498c51c /usr.sbin/smtpd/lka.c | |
parent | 576522606d25ccb68ce580aa9b2d77ae382c9c2d (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/lka.c')
-rw-r--r-- | usr.sbin/smtpd/lka.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c index 2a622f6ad99..3b9a48adcd1 100644 --- a/usr.sbin/smtpd/lka.c +++ b/usr.sbin/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.50 2009/05/20 16:07:26 gilles Exp $ */ +/* $OpenBSD: lka.c,v 1.51 2009/05/24 14:38:56 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -725,8 +725,8 @@ lka(struct smtpd *env) pw = env->sc_pw; - setproctitle("lookup agent"); smtpd_process = PROC_LKA; + setproctitle("%s", env->sc_title[smtpd_process]); #ifndef DEBUG if (setgroups(1, &pw->pw_gid) || |