return ret;
}
-static void init_admissible_files(void)
+static void init_admissible_files(char *arg)
{
- int ret = 0;
- char *arg = conf.afs_initial_mode_arg;
- ret = activate_mood_or_playlist(arg, NULL);
- if (ret >= 0)
- return;
- PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
- PARA_NOTICE_LOG("defaulting to dummy mood\n");
- activate_mood_or_playlist(NULL, NULL); /* always successful */
+ if (activate_mood_or_playlist(arg, NULL) < 0)
+ activate_mood_or_playlist(NULL, NULL); /* always successful */
}
static int setup_command_socket_or_die(void)
exit(EXIT_FAILURE);
PARA_INFO_LOG("server_socket: %d, afs_socket_cookie: %u\n",
server_socket, (unsigned) cookie);
- init_admissible_files();
+ init_admissible_files(conf.afs_initial_mode_arg);
register_tasks(cookie);
s.default_timeout.tv_sec = 0;
s.default_timeout.tv_usec = 999 * 1000;