dovecot-2.0: process_title_set(): Don't include executable name ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 1 00:07:35 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4b18863b7213
changeset: 9957:4b18863b7213
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 30 17:07:12 2009 -0400
description:
process_title_set(): Don't include executable name in setproctitle(), it's done internally.

diffstat:

1 file changed, 3 insertions(+), 4 deletions(-)
src/lib/process-title.c |    7 +++----

diffs (25 lines):

diff -r 3441e6613ab4 -r 4b18863b7213 src/lib/process-title.c
--- a/src/lib/process-title.c	Wed Sep 30 16:00:51 2009 -0400
+++ b/src/lib/process-title.c	Wed Sep 30 17:07:12 2009 -0400
@@ -55,8 +55,7 @@ static void linux_proctitle_set(const ch
 
 #endif
 
-void process_title_init(char *argv[] ATTR_UNUSED,
-			char *envp[] ATTR_UNUSED)
+void process_title_init(char *argv[], char *envp[] ATTR_UNUSED)
 {
 #ifdef LINUX_PROCTITLE_HACK
 	linux_proctitle_init(argv, envp);
@@ -70,9 +69,9 @@ void process_title_set(const char *title
 
 #ifdef HAVE_SETPROCTITLE
 	if (title == NULL)
-		setproctitle("%s", process_name);
+		setproctitle(NULL);
 	else
-		setproctitle("%s %s", process_name, title);
+		setproctitle("%s", title);
 #elif defined(LINUX_PROCTITLE_HACK)
 	linux_proctitle_set(t_strconcat(process_name, " ", title, NULL));
 #endif


More information about the dovecot-cvs mailing list