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

Diff of /lbbs/src/section_list_loader.c

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

Revision 1.57 by sysadm, Mon Nov 3 07:14:25 2025 UTC Revision 1.59 by sysadm, Mon Nov 3 08:48:56 2025 UTC
# Line 723  int section_list_loader_launch(void) Line 723  int section_list_loader_launch(void)
723          detach_menu_shm(&top10_menu);          detach_menu_shm(&top10_menu);
724    
725          // Set signal handler          // Set signal handler
726          act.sa_handler = SIG_DFL;          act.sa_handler = SIG_IGN;
727          if (sigaction(SIGHUP, &act, NULL) == -1)          if (sigaction(SIGHUP, &act, NULL) == -1)
728          {          {
729                  log_error("set signal action of SIGHUP error: %d\n", errno);                  log_error("set signal action of SIGHUP error: %d\n", errno);
# Line 931  int query_section_articles(SECTION_LIST Line 931  int query_section_articles(SECTION_LIST
931                                           : (page_id - p_section->page_count + 1) * BBS_article_limit_per_page - p_section->last_page_visible_article_count);                                           : (page_id - p_section->page_count + 1) * BBS_article_limit_per_page - p_section->last_page_visible_article_count);
932                          while (*p_article_count < BBS_article_limit_per_page && i < p_section->ontop_article_count)                          while (*p_article_count < BBS_article_limit_per_page && i < p_section->ontop_article_count)
933                          {                          {
934                                  p_articles[(*p_article_count)++] = p_section->p_ontop_articles[i++];                                  p_articles[*p_article_count] = p_section->p_ontop_articles[i++];
935                                    (*p_article_count)++;
936                          }                          }
937                  }                  }
938          }          }


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

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