| 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); |
| 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 |
} |
} |