| 25 |
#include "fork.h" |
#include "fork.h" |
| 26 |
#include "menu.h" |
#include "menu.h" |
| 27 |
#include "file_loader.h" |
#include "file_loader.h" |
| 28 |
|
#include "section_list_loader.h" |
| 29 |
#include <errno.h> |
#include <errno.h> |
| 30 |
#include <fcntl.h> |
#include <fcntl.h> |
| 31 |
#include <string.h> |
#include <string.h> |
| 186 |
} |
} |
| 187 |
else |
else |
| 188 |
{ |
{ |
|
log_std("Debug: trie dict nodes used = %d, limit = %d\n", trie_dict_used_nodes(), TRIE_NODE_PER_POOL); |
|
|
|
|
| 189 |
unload_menu(p_bbs_menu); |
unload_menu(p_bbs_menu); |
| 190 |
free(p_bbs_menu); |
free(p_bbs_menu); |
| 191 |
|
|
| 215 |
sd_notify(0, "READY=1"); |
sd_notify(0, "READY=1"); |
| 216 |
} |
} |
| 217 |
|
|
| 218 |
|
if (SYS_section_list_reload && !SYS_server_exit) |
| 219 |
|
{ |
| 220 |
|
SYS_section_list_reload = 0; |
| 221 |
|
|
| 222 |
|
if (section_list_loader_reload() < 0) |
| 223 |
|
{ |
| 224 |
|
log_error("ksection_list_loader_reload() failed\n"); |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
|
| 228 |
nfds = epoll_wait(epollfd, events, MAX_EVENTS, 100); // 0.1 second |
nfds = epoll_wait(epollfd, events, MAX_EVENTS, 100); // 0.1 second |
| 229 |
|
|
| 230 |
if (nfds < 0) |
if (nfds < 0) |