| 258 |
int nfds, epollfd; |
int nfds, epollfd; |
| 259 |
siginfo_t siginfo; |
siginfo_t siginfo; |
| 260 |
int sd_notify_stopping = 0; |
int sd_notify_stopping = 0; |
| 261 |
MENU_SET *p_bbs_menu_new; |
MENU_SET bbs_menu_new; |
| 262 |
int i, j; |
int i, j; |
| 263 |
pid_t pid; |
pid_t pid; |
| 264 |
int ssh_log_level = SSH_LOG_NOLOG; |
int ssh_log_level = SSH_LOG_NOLOG; |
| 419 |
log_error("Reload conf failed\n"); |
log_error("Reload conf failed\n"); |
| 420 |
} |
} |
| 421 |
|
|
| 422 |
p_bbs_menu_new = calloc(1, sizeof(MENU_SET)); |
if (load_menu(&bbs_menu_new, CONF_MENU) < 0) |
|
if (p_bbs_menu_new == NULL) |
|
| 423 |
{ |
{ |
| 424 |
log_error("OOM: calloc(MENU_SET)\n"); |
unload_menu(&bbs_menu_new); |
|
} |
|
|
else if (load_menu(p_bbs_menu_new, CONF_MENU) < 0) |
|
|
{ |
|
|
unload_menu(p_bbs_menu_new); |
|
|
free(p_bbs_menu_new); |
|
|
p_bbs_menu_new = NULL; |
|
|
|
|
| 425 |
log_error("Reload menu failed\n"); |
log_error("Reload menu failed\n"); |
| 426 |
} |
} |
| 427 |
else |
else |
| 428 |
{ |
{ |
| 429 |
unload_menu(p_bbs_menu); |
memcpy(&bbs_menu, &bbs_menu_new, sizeof(bbs_menu_new)); |
|
free(p_bbs_menu); |
|
|
|
|
|
p_bbs_menu = p_bbs_menu_new; |
|
|
p_bbs_menu_new = NULL; |
|
|
|
|
| 430 |
log_common("Reload menu successfully\n"); |
log_common("Reload menu successfully\n"); |
| 431 |
} |
} |
| 432 |
|
|