From 3d8d32cf1ca0a40fc0f386a10cc71fae782f84af Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Wed, 28 Mar 2012 16:23:02 +0400 Subject: [PATCH] change initialization order for properly handle incorrect configuration cases --- daemon/yasnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/yasnd.c b/daemon/yasnd.c index a65f6f4..0200fa0 100644 --- a/daemon/yasnd.c +++ b/daemon/yasnd.c @@ -359,13 +359,13 @@ int main(int argc, char *argv[]) // create pid file and write current process pid pidfile_init(); + // Init apropriate structures + init(); + // initialize IPC queue and create process // that will watch for new messages in it ipc_init(); - // Init apropriate structures - init(); - // Set signal handlers signal(SIGTERM, signal_handler); signal(SIGHUP, signal_handler);