]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/ircd.c
Fix memory leak and bad error reporting with posix_spawn():
[irc/rqf/shadowircd.git] / src / ircd.c
index 8adc8ccc2d3dcb51ac6904bf329bce161bcbf00d..962c7edc23ec9b908b2a58a0da532b62d463af1e 100644 (file)
@@ -67,6 +67,7 @@
 #include "sslproc.h"
 #include "chmode.h"
 #include "privilege.h"
+#include "bandbi.h"
 
 /* /quote set variables */
 struct SetOptions GlobalSetOptions;
@@ -157,7 +158,6 @@ print_startup(int pid)
        inotice("now running in %s mode from %s as pid %d ...",
               !server_state_foreground ? "background" : "foreground",
                ConfigFileEntry.dpath, pid);
-       inotice("%s", rb_lib_version());
 
        /* let the parent process know the initialization was successful
         * -- jilles */
@@ -628,6 +628,7 @@ main(int argc, char *argv[])
                if(!server_state_foreground)
                        make_daemon();
                inotice("starting %s ...", ircd_version);
+               inotice("%s", rb_lib_version());
        }
 
        /* Init the event subsystem */
@@ -670,15 +671,17 @@ main(int argc, char *argv[])
        if (testing_conf)
                fprintf(stderr, "\nBeginning config test\n");
        read_conf_files(YES);   /* cold start init conf files */
-       rehash_bans(0);
 #ifndef STATIC_MODULES
 
        mod_add_path(MODULE_DIR); 
        mod_add_path(MODULE_DIR "/autoload"); 
 #endif
 
+       init_bandb();
        init_ssld();
 
+       rehash_bans(0);
+
        initialize_server_capabs();     /* Set up default_server_capabs */
        initialize_global_set_options();