dovecot-2.0: master: If instance_name doesn't begin with "doveco...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 12 23:06:57 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/0b5076a69909
changeset: 13053:0b5076a69909
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 12 23:06:52 2012 +0200
description:
master: If instance_name doesn't begin with "dovecot", add "dovecot-" prefix to process names.

diffstat:

 src/master/main.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r eed2b8fb2a52 -r 0b5076a69909 src/master/main.c
--- a/src/master/main.c	Sun Feb 12 05:45:04 2012 +0200
+++ b/src/master/main.c	Sun Feb 12 23:06:52 2012 +0200
@@ -81,6 +81,8 @@
 	/* prefix with dovecot/ */
 	argv[0] = t_strdup_printf("%s/%s", services->set->instance_name,
 				  argv[0]);
+	if (strncmp(argv[0], PACKAGE, strlen(PACKAGE)) != 0)
+		argv[0] = t_strconcat(PACKAGE"-", argv[0], NULL);
 	(void)execv_const(executable, argv);
 }
 


More information about the dovecot-cvs mailing list