~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/main.c

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2005-2012 Dovecot authors, see the included COPYING file */
 
1
/* Copyright (c) 2005-2013 Dovecot authors, see the included COPYING file */
2
2
 
3
3
#include "lib.h"
4
4
#include "restrict-access.h"
32
32
        }
33
33
 
34
34
        master_service_client_connection_accept(conn);
35
 
        doveadm_client = client_connection_create(conn->fd, conn->listen_fd);
 
35
        doveadm_client = client_connection_create(conn->fd, conn->listen_fd,
 
36
                                                  conn->ssl);
36
37
}
37
38
 
38
39
static void main_preinit(void)
60
61
                client_connection_destroy(&doveadm_client);
61
62
        doveadm_mail_deinit();
62
63
        doveadm_unload_modules();
 
64
        doveadm_print_deinit();
63
65
}
64
66
 
65
67
int main(int argc, char *argv[])
73
75
        const char *error;
74
76
 
75
77
        master_service = master_service_init("doveadm", service_flags,
76
 
                                             &argc, &argv, NULL);
 
78
                                             &argc, &argv, "");
77
79
        if (master_getopt(master_service) > 0)
78
80
                return FATAL_DEFAULT;
79
81
 
83
85
 
84
86
        master_service_init_log(master_service, "doveadm: ");
85
87
        main_preinit();
86
 
        master_service_init_finish(master_service);
87
88
        master_service_set_die_callback(master_service, doveadm_die);
88
89
 
89
90
        main_init();
 
91
        master_service_init_finish(master_service);
90
92
        master_service_run(master_service, client_connected);
91
93
 
92
94
        main_deinit();