X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fserver_main.c;h=ff216ba769fb9f07a2c7ddf01174279a5e4e6eb7;hp=592ea7708bbc620f518e10eb21af59406b86642d;hb=57b37d4ed168b176d594bc149e5d16a1b9f0517a;hpb=20f386fa836709f3165102c34e113668ab73094a diff --git a/citadel/server_main.c b/citadel/server_main.c index 592ea7708..ff216ba76 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -279,7 +279,7 @@ int main(int argc, char **argv) } /* - * Bind the server to a Unix-domain socket. + * Bind the server to a Unix-domain socket (user client access) */ CtdlRegisterServiceHook(0, file_citadel_socket, @@ -288,6 +288,17 @@ int main(int argc, char **argv) do_async_loop, CitadelServiceUDS); + /* + * Bind the server to a Unix-domain socket (admin client access) + */ + CtdlRegisterServiceHook(0, + file_citadel_admin_socket, + citproto_begin_session, + do_command_loop, + do_async_loop, + CitadelServiceUDS); + chmod(file_citadel_admin_socket, S_IRWXU); /* for your eyes only */ + /* * Bind the server to our favorite TCP port (usually 504). */