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/mta.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/mta.c')
-rw-r--r-- | usr.sbin/smtpd/mta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index c538636d3fc..8c5f1e8be4f 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.48 2009/05/19 11:24:24 jacekm Exp $ */ +/* $OpenBSD: mta.c,v 1.49 2009/05/24 14:38:56 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -500,8 +500,8 @@ mta(struct smtpd *env) #warning disabling privilege revocation and chroot in DEBUG MODE #endif - setproctitle("mail transfer agent"); smtpd_process = PROC_MTA; + setproctitle("%s", env->sc_title[smtpd_process]); #ifndef DEBUG if (setgroups(1, &pw->pw_gid) || |