Mercurial > dovecot > core-2.2
diff src/lmtp/main.c @ 10120:b584904d3bc7 HEAD
Moved process title init to lib-master. With Linux-hack enabled it now preserves command args.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 20 Oct 2009 20:19:05 -0400 |
parents | 1e63221f5c83 |
children | 9c640a1eb8b6 |
line wrap: on
line diff
--- a/src/lmtp/main.c Tue Oct 20 20:07:45 2009 -0400 +++ b/src/lmtp/main.c Tue Oct 20 20:19:05 2009 -0400 @@ -5,7 +5,6 @@ #include "ioloop.h" #include "restrict-access.h" #include "fd-close-on-exec.h" -#include "process-title.h" #include "master-service.h" #include "master-service-settings.h" #include "master-interface.h" @@ -52,7 +51,7 @@ clients_destroy(); } -int main(int argc, char *argv[], char *envp[]) +int main(int argc, char *argv[]) { const struct setting_parser_info *set_roots[] = { &lda_setting_parser_info, @@ -70,7 +69,7 @@ } master_service = master_service_init("lmtp", service_flags, - argc, argv, NULL); + &argc, &argv, NULL); if (master_getopt(master_service) > 0) return FATAL_DEFAULT; @@ -79,8 +78,6 @@ storage_service_flags); restrict_access_allow_coredumps(TRUE); - process_title_init(argv, envp); - main_init(); master_service_run(master_service, client_connected);