main.c revision 2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3Timo Sirainen/* Copyright (c) 2011-2016 Dovecot authors, see the included COPYING file */
faec0abfd648c647030027e86de2ce8911df683bTimo Sirainenstatic bool ipc_socket_is_client(const char *name)
faec0abfd648c647030027e86de2ce8911df683bTimo Sirainen if (len > 7 && strcmp(name + len - 7, "-client") == 0)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstatic void client_connected(struct master_service_connection *conn)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service_client_connection_accept(conn);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen (void)ipc_connection_create(conn->listen_fd, conn->fd);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen const enum master_service_flags service_flags =
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service = master_service_init("ipc", service_flags,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen if (master_service_settings_read_simple(master_service,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen i_fatal("Error reading configuration: %s", error);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service_init_log(master_service, "ipc: ");