change initialization order for properly handle incorrect configuration cases

This commit is contained in:
Sergey Popov 2012-03-28 16:23:02 +04:00
parent 35e65d659e
commit 3d8d32cf1c

View File

@ -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);