/[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.83 by sysadm, Sun Nov 16 00:19:42 2025 UTC Revision 1.84 by sysadm, Sun Nov 16 02:06:56 2025 UTC
# Line 672  int net_server(const char *hostaddr, in_ Line 672  int net_server(const char *hostaddr, in_
672                          SYS_conf_reload = 0;                          SYS_conf_reload = 0;
673                          sd_notify(0, "RELOADING=1");                          sd_notify(0, "RELOADING=1");
674    
675                            // Restart log
676                            if (log_restart() < 0)
677                            {
678                                    log_error("Restart logging failed\n");
679                            }
680    
681                          // Reload configuration                          // Reload configuration
682                          if (load_conf(CONF_BBSD) < 0)                          if (load_conf(CONF_BBSD) < 0)
683                          {                          {
# Line 728  int net_server(const char *hostaddr, in_ Line 734  int net_server(const char *hostaddr, in_
734                                  log_common("Reload section config and gen_ex successfully\n");                                  log_common("Reload section config and gen_ex successfully\n");
735                          }                          }
736    
737                            // Notify child processes to reload configuration
738                            if (kill(-getpid(), SIGUSR1) < 0)
739                            {
740                                    log_error("Send SIGUSR1 signal failed (%d)\n", errno);
741                            }
742    
743                          sd_notify(0, "READY=1");                          sd_notify(0, "READY=1");
744                  }                  }
745    


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

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