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/mda.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/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index e81c2e0e106..a46f0c30a04 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.17 2009/05/19 11:24:24 jacekm Exp $ */ +/* $OpenBSD: mda.c,v 1.18 2009/05/24 14:38:56 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -417,8 +417,8 @@ mda(struct smtpd *env) #warning disabling privilege revocation and chroot in DEBUG MODE #endif - setproctitle("mail delivery agent"); smtpd_process = PROC_MDA; + setproctitle("%s", env->sc_title[smtpd_process]); #ifndef DEBUG if (setgroups(1, &pw->pw_gid) || |