--- lbbs/src/net_server.c 2025/11/19 14:47:08 1.94 +++ lbbs/src/net_server.c 2025/11/21 08:59:29 1.95 @@ -446,6 +446,15 @@ static int fork_server(void) SYS_child_process_count = 0; +#ifdef __MSYS__ + // Load BWF config + if (bwf_load(CONF_BWF) < 0) + { + log_error("bwf_load() error\n"); + goto cleanup; + } +#endif + bbs_main(); cleanup: @@ -482,6 +491,11 @@ cleanup: ssh_free(SSH_session); ssh_finalize(); +#ifdef __MSYS__ + // Cleanup BWF + bwf_unload(); +#endif + // Close Input and Output for client io_cleanup(); close(STDIN_FILENO); @@ -751,11 +765,13 @@ int net_server(const char *hostaddr, in_ log_error("Reload conf failed\n"); } +#ifndef __MSYS__ // Reload BWF config if (bwf_load(CONF_BWF) < 0) { log_error("Reload BWF conf failed\n"); } +#endif if (detach_menu_shm(&bbs_menu) < 0) {