diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2010-04-20 01:01:44 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2010-04-20 01:01:44 +0000 |
commit | 4254baf5281dcf7815c3c107f6c2847fce4b7772 (patch) | |
tree | 263d059e3c7481ecfd0792936dbe0f73410bf15e /usr.sbin/smtpd/smtpd.c | |
parent | 89b34ba6208f1106704b93a5859cc27824b0a6ca (diff) |
setproctitle(3) the parent process to "[priv]" to match other OpenBSD
daemons.
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index c25994b6937..536b269cfa7 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.99 2010/04/20 00:57:22 jacekm Exp $ */ +/* $OpenBSD: smtpd.c,v 1.100 2010/04/20 01:01:43 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -938,6 +938,8 @@ fork_peers(struct smtpd *env) child_add(env, queue(env), CHILD_DAEMON, PROC_QUEUE); child_add(env, runner(env), CHILD_DAEMON, PROC_RUNNER); child_add(env, smtp(env), CHILD_DAEMON, PROC_SMTP); + + setproctitle("[priv]"); } struct child * |