| 446 |
|
|
| 447 |
SYS_child_process_count = 0; |
SYS_child_process_count = 0; |
| 448 |
|
|
| 449 |
#ifdef __MSYS__ |
// BWF compile |
| 450 |
// Load BWF config |
if (bwf_compile() < 0) |
|
if (bwf_load(CONF_BWF) < 0) |
|
| 451 |
{ |
{ |
| 452 |
log_error("bwf_load() error\n"); |
log_error("bwf_compile() error\n"); |
| 453 |
goto cleanup; |
goto cleanup; |
| 454 |
} |
} |
|
#endif |
|
| 455 |
|
|
| 456 |
bbs_main(); |
bbs_main(); |
| 457 |
|
|
| 489 |
ssh_free(SSH_session); |
ssh_free(SSH_session); |
| 490 |
ssh_finalize(); |
ssh_finalize(); |
| 491 |
|
|
| 492 |
#ifdef __MSYS__ |
// BWF cleanup |
| 493 |
// Cleanup BWF |
bwf_cleanup(); |
|
bwf_unload(); |
|
|
#endif |
|
| 494 |
|
|
| 495 |
// Close Input and Output for client |
// Close Input and Output for client |
| 496 |
io_cleanup(); |
io_cleanup(); |
| 761 |
log_error("Reload conf failed\n"); |
log_error("Reload conf failed\n"); |
| 762 |
} |
} |
| 763 |
|
|
|
#ifndef __MSYS__ |
|
| 764 |
// Reload BWF config |
// Reload BWF config |
| 765 |
if (bwf_load(CONF_BWF) < 0) |
if (bwf_load(CONF_BWF) < 0) |
| 766 |
{ |
{ |
| 767 |
log_error("Reload BWF conf failed\n"); |
log_error("Reload BWF conf failed\n"); |
| 768 |
} |
} |
|
#endif |
|
| 769 |
|
|
| 770 |
if (detach_menu_shm(&bbs_menu) < 0) |
if (detach_menu_shm(&bbs_menu) < 0) |
| 771 |
{ |
{ |