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