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

Diff of /lbbs/src/main.c

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

Revision 1.44 by sysadm, Tue May 27 01:56:16 2025 UTC Revision 1.45 by sysadm, Tue May 27 03:25:02 2025 UTC
# Line 222  int main(int argc, char *argv[]) Line 222  int main(int argc, char *argv[])
222                  goto cleanup;                  goto cleanup;
223          }          }
224    
225          // Load section config          // Load section articles
226          if (append_articles_from_db(0, 1) < 0)          if (append_articles_from_db(0, 1) < 0)
227          {          {
228                  log_error("append_articles_from_db(0, 1) error\n");                  log_error("append_articles_from_db(0, 1) error\n");
229                  goto cleanup;                  goto cleanup;
230          }          }
231    
232          log_std("Debug: loaded %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());          log_std("Initially load %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());
233    
234          // Set signal handler          // Set signal handler
235          signal(SIGHUP, sig_hup_handler);          signal(SIGHUP, sig_hup_handler);
236          signal(SIGCHLD, sig_chld_handler);          signal(SIGCHLD, sig_chld_handler);
237          signal(SIGTERM, sig_term_handler);          signal(SIGTERM, sig_term_handler);
238    
239            // Launch section_list_loader process
240            if (section_list_loader_launch() < 0)
241            {
242                    log_error("section_list_loader_launch() error\n");
243                    goto cleanup;
244            }
245    
246          // Initialize socket server          // Initialize socket server
247          net_server(BBS_address, BBS_port);          net_server(BBS_address, BBS_port);
248    


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

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