| 446 |
|
|
| 447 |
SYS_child_process_count = 0; |
SYS_child_process_count = 0; |
| 448 |
|
|
| 449 |
|
#ifdef __MSYS__ |
| 450 |
|
// Load BWF config |
| 451 |
|
if (bwf_load(CONF_BWF) < 0) |
| 452 |
|
{ |
| 453 |
|
log_error("bwf_load() error\n"); |
| 454 |
|
goto cleanup; |
| 455 |
|
} |
| 456 |
|
#endif |
| 457 |
|
|
| 458 |
bbs_main(); |
bbs_main(); |
| 459 |
|
|
| 460 |
cleanup: |
cleanup: |
| 491 |
ssh_free(SSH_session); |
ssh_free(SSH_session); |
| 492 |
ssh_finalize(); |
ssh_finalize(); |
| 493 |
|
|
| 494 |
|
#ifdef __MSYS__ |
| 495 |
|
// Cleanup BWF |
| 496 |
|
bwf_unload(); |
| 497 |
|
#endif |
| 498 |
|
|
| 499 |
// Close Input and Output for client |
// Close Input and Output for client |
| 500 |
io_cleanup(); |
io_cleanup(); |
| 501 |
close(STDIN_FILENO); |
close(STDIN_FILENO); |
| 765 |
log_error("Reload conf failed\n"); |
log_error("Reload conf failed\n"); |
| 766 |
} |
} |
| 767 |
|
|
| 768 |
|
#ifndef __MSYS__ |
| 769 |
// Reload BWF config |
// Reload BWF config |
| 770 |
if (bwf_load(CONF_BWF) < 0) |
if (bwf_load(CONF_BWF) < 0) |
| 771 |
{ |
{ |
| 772 |
log_error("Reload BWF conf failed\n"); |
log_error("Reload BWF conf failed\n"); |
| 773 |
} |
} |
| 774 |
|
#endif |
| 775 |
|
|
| 776 |
if (detach_menu_shm(&bbs_menu) < 0) |
if (detach_menu_shm(&bbs_menu) < 0) |
| 777 |
{ |
{ |