main.c revision 86791365b10f45982c88e70f2eb94fd6c3fea151
/* Copyright (c) 2005-2009 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "lib-signals.h"
#include "master-interface.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "log-connection.h"
#include <unistd.h>
static void
{
}
static void main_init(void)
{
master_pid = getppid();
}
static void main_deinit(void)
{
}
{
}
{
const char *error;
/* use log prefix and log to stderr until we've configured the real
logging */
if (master_getopt(master_service) > 0)
return FATAL_DEFAULT;
/* logging should never die if there are some clients */
main_init();
main_deinit();
return 0;
}