]> code.citadel.org Git - citadel.git/blobdiff - citadel/server_main.c
* Replaced all "Citadel/UX" references with "Citadel"
[citadel.git] / citadel / server_main.c
index ebf85cdf1b39cf16abaa298b6170351a322ad3e5..3e51f93eac09b7a24d09d2c6d067e7d7d0616b5c 100644 (file)
@@ -144,10 +144,10 @@ int main(int argc, char **argv)
        lprintf(CTDL_NOTICE, "\n");
        lprintf(CTDL_NOTICE, "\n");
        lprintf(CTDL_NOTICE,
-               "*** Citadel/UX messaging server engine v%d.%02d ***\n",
+               "*** Citadel server engine v%d.%02d ***\n",
                (REV_LEVEL/100), (REV_LEVEL%100));
        lprintf(CTDL_NOTICE,
-               "Copyright (C) 1987-2003 by the Citadel/UX development team.\n");
+               "Copyright (C) 1987-2004 by the Citadel development team.\n");
        lprintf(CTDL_NOTICE,
                "This program is distributed under the terms of the GNU "
                "General Public License.\n");
@@ -173,7 +173,8 @@ int main(int argc, char **argv)
        CtdlRegisterServiceHook(0,
                                "citadel.socket",
                                citproto_begin_session,
-                               do_command_loop);
+                               do_command_loop,
+                               do_async_loop);
 
        /*
         * Bind the server to our favorite TCP port (usually 504).
@@ -181,7 +182,8 @@ int main(int argc, char **argv)
        CtdlRegisterServiceHook(config.c_port_number,
                                NULL,
                                citproto_begin_session,
-                               do_command_loop);
+                               do_command_loop,
+                               do_async_loop);
 
        /*
         * Load any server-side extensions available here.
@@ -190,19 +192,6 @@ int main(int argc, char **argv)
        size = strlen(bbs_home_directory) + 9;
        initialize_server_extensions();
 
-       /*
-        * The rescan pipe exists so that worker threads can be woken up and
-        * told to re-scan the context list for fd's to listen on.  This is
-        * necessary, for example, when a context is about to go idle and needs
-        * to get back on that list.
-        */
-       if (pipe(rescan)) {
-               lprintf(CTDL_EMERG, "Can't create rescan pipe!\n");
-               exit(errno);
-       }
-
-       init_master_fdset();
-
        /*
         * Now that we've bound the sockets, change to the BBS user id and its
         * corresponding group ids