/[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.63 by sysadm, Tue Oct 21 06:24:51 2025 UTC Revision 1.64 by sysadm, Thu Oct 23 01:16:56 2025 UTC
# Line 246  int main(int argc, char *argv[]) Line 246  int main(int argc, char *argv[])
246                  }                  }
247          }          }
248    
249            // Load user_list and online_user_list
250            if (user_list_pool_init() < 0)
251            {
252                    log_error("user_list_pool_init() error\n");
253                    goto cleanup;
254            }
255            if (user_list_pool_reload(0) < 0)
256            {
257                    log_error("user_list_pool_reload(all_user) error\n");
258                    goto cleanup;
259            }
260            if (user_list_pool_reload(1) < 0)
261            {
262                    log_error("user_list_pool_reload(online_user) error\n");
263                    goto cleanup;
264            }
265    
266          // Load section config and gen_ex          // Load section config and gen_ex
267          if (load_section_config_from_db(1) < 0)          if (load_section_config_from_db(1) < 0)
268          {          {
# Line 270  int main(int argc, char *argv[]) Line 287  int main(int argc, char *argv[])
287    
288          log_common("Initially load %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());          log_common("Initially load %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());
289    
         // Load user list  
         if (user_list_pool_init() < 0)  
         {  
                 log_error("user_list_pool_init() error\n");  
                 goto cleanup;  
         }  
   
290          // Set signal handler          // Set signal handler
291          act.sa_handler = sig_hup_handler;          act.sa_handler = sig_hup_handler;
292          if (sigaction(SIGHUP, &act, NULL) == -1)          if (sigaction(SIGHUP, &act, NULL) == -1)


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

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