/[LeafOK_CVS]/lbbs/src/net_server.c
ViewVC logotype

Diff of /lbbs/src/net_server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.95 by sysadm, Fri Nov 21 08:59:29 2025 UTC Revision 1.96 by sysadm, Fri Nov 21 10:34:10 2025 UTC
# Line 446  static int fork_server(void) Line 446  static int fork_server(void)
446    
447          SYS_child_process_count = 0;          SYS_child_process_count = 0;
448    
449  #ifdef __MSYS__          // BWF compile
450          // Load BWF config          if (bwf_compile() < 0)
         if (bwf_load(CONF_BWF) < 0)  
451          {          {
452                  log_error("bwf_load() error\n");                  log_error("bwf_compile() error\n");
453                  goto cleanup;                  goto cleanup;
454          }          }
 #endif  
455    
456          bbs_main();          bbs_main();
457    
# Line 491  cleanup: Line 489  cleanup:
489          ssh_free(SSH_session);          ssh_free(SSH_session);
490          ssh_finalize();          ssh_finalize();
491    
492  #ifdef __MSYS__          // BWF cleanup
493          // Cleanup BWF          bwf_cleanup();
         bwf_unload();  
 #endif  
494    
495          // Close Input and Output for client          // Close Input and Output for client
496          io_cleanup();          io_cleanup();
# Line 765  int net_server(const char *hostaddr, in_ Line 761  int net_server(const char *hostaddr, in_
761                                  log_error("Reload conf failed\n");                                  log_error("Reload conf failed\n");
762                          }                          }
763    
 #ifndef __MSYS__  
764                          // Reload BWF config                          // Reload BWF config
765                          if (bwf_load(CONF_BWF) < 0)                          if (bwf_load(CONF_BWF) < 0)
766                          {                          {
767                                  log_error("Reload BWF conf failed\n");                                  log_error("Reload BWF conf failed\n");
768                          }                          }
 #endif  
769    
770                          if (detach_menu_shm(&bbs_menu) < 0)                          if (detach_menu_shm(&bbs_menu) < 0)
771                          {                          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1