X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=e0d50f4f8689e1de283ef80f8341504bcf386d33;hp=eee0a4128e9218233dad9e316d6cc9c1658a6cbb;hb=442a3320ff155d09b990c0ee2abace399cbcd6dd;hpb=7e611b37e41f0ec7ec6d3173b7e88ed5b9b3a276 diff --git a/server.c b/server.c index eee0a412..e0d50f4f 100644 --- a/server.c +++ b/server.c @@ -488,6 +488,13 @@ static void init_server_command_task(struct server_command_task *sct, .post_select = command_post_select, .context = sct, }, &sched); + /* + * Detect whether the abstract Unix domain socket space is supported, + * but do not create the socket. We check this once in server context + * so that the command handlers inherit this bit of information and + * don't need to check again. + */ + create_local_socket(NULL); return; err: PARA_EMERG_LOG("%s\n", para_strerror(-ret)); @@ -576,9 +583,6 @@ static void server_init(int argc, char **argv, struct server_command_task *sct) init_ipc_or_die(); /* init mmd struct, mmd and log mutex */ daemon_set_start_time(); daemon_set_hooks(pre_log_hook, post_log_hook); - PARA_NOTICE_LOG("initializing audio format handlers\n"); - afh_init(); - /* * Although afs uses its own signal handling we must ignore SIGUSR1 * _before_ the afs child process gets born by init_afs() below. It's