| 280 |
time_t tm_notify_child_exit = time(NULL); |
time_t tm_notify_child_exit = time(NULL); |
| 281 |
int sd_notify_stopping = 0; |
int sd_notify_stopping = 0; |
| 282 |
MENU_SET bbs_menu_new; |
MENU_SET bbs_menu_new; |
| 283 |
|
MENU_SET top10_menu_new; |
| 284 |
int i, j; |
int i, j; |
| 285 |
pid_t pid; |
pid_t pid; |
| 286 |
int ssh_log_level = SSH_LOG_NOLOG; |
int ssh_log_level = SSH_LOG_NOLOG; |
| 474 |
if (load_menu(&bbs_menu_new, CONF_MENU) < 0) |
if (load_menu(&bbs_menu_new, CONF_MENU) < 0) |
| 475 |
{ |
{ |
| 476 |
unload_menu(&bbs_menu_new); |
unload_menu(&bbs_menu_new); |
| 477 |
log_error("Reload menu failed\n"); |
log_error("Reload bbs menu failed\n"); |
| 478 |
} |
} |
| 479 |
else |
else |
| 480 |
{ |
{ |
| 481 |
unload_menu(&bbs_menu); |
unload_menu(&bbs_menu); |
| 482 |
memcpy(&bbs_menu, &bbs_menu_new, sizeof(bbs_menu_new)); |
memcpy(&bbs_menu, &bbs_menu_new, sizeof(bbs_menu_new)); |
| 483 |
log_common("Reload menu successfully\n"); |
log_common("Reload bbs menu successfully\n"); |
| 484 |
|
} |
| 485 |
|
|
| 486 |
|
if (load_menu(&top10_menu_new, CONF_TOP10_MENU) < 0) |
| 487 |
|
{ |
| 488 |
|
unload_menu(&top10_menu_new); |
| 489 |
|
log_error("Reload top10 menu failed\n"); |
| 490 |
|
} |
| 491 |
|
else |
| 492 |
|
{ |
| 493 |
|
unload_menu(&top10_menu); |
| 494 |
|
top10_menu_new.allow_exit = 1; |
| 495 |
|
memcpy(&top10_menu, &top10_menu_new, sizeof(top10_menu_new)); |
| 496 |
|
log_common("Reload top10 menu successfully\n"); |
| 497 |
} |
} |
| 498 |
|
|
| 499 |
for (int i = 0; i < data_files_load_startup_count; i++) |
for (int i = 0; i < data_files_load_startup_count; i++) |