/[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.94 by sysadm, Wed Nov 19 14:47:08 2025 UTC Revision 1.95 by sysadm, Fri Nov 21 08:59:29 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__
450            // Load BWF config
451            if (bwf_load(CONF_BWF) < 0)
452            {
453                    log_error("bwf_load() error\n");
454                    goto cleanup;
455            }
456    #endif
457    
458          bbs_main();          bbs_main();
459    
460  cleanup:  cleanup:
# Line 482  cleanup: Line 491  cleanup:
491          ssh_free(SSH_session);          ssh_free(SSH_session);
492          ssh_finalize();          ssh_finalize();
493    
494    #ifdef __MSYS__
495            // Cleanup BWF
496            bwf_unload();
497    #endif
498    
499          // Close Input and Output for client          // Close Input and Output for client
500          io_cleanup();          io_cleanup();
501          close(STDIN_FILENO);          close(STDIN_FILENO);
# Line 751  int net_server(const char *hostaddr, in_ Line 765  int net_server(const char *hostaddr, in_
765                                  log_error("Reload conf failed\n");                                  log_error("Reload conf failed\n");
766                          }                          }
767    
768    #ifndef __MSYS__
769                          // Reload BWF config                          // Reload BWF config
770                          if (bwf_load(CONF_BWF) < 0)                          if (bwf_load(CONF_BWF) < 0)
771                          {                          {
772                                  log_error("Reload BWF conf failed\n");                                  log_error("Reload BWF conf failed\n");
773                          }                          }
774    #endif
775    
776                          if (detach_menu_shm(&bbs_menu) < 0)                          if (detach_menu_shm(&bbs_menu) < 0)
777                          {                          {


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

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