| 24 |
#include "io.h" |
#include "io.h" |
| 25 |
#include "fork.h" |
#include "fork.h" |
| 26 |
#include "menu.h" |
#include "menu.h" |
| 27 |
|
#include "file_loader.h" |
| 28 |
#include <errno.h> |
#include <errno.h> |
| 29 |
#include <fcntl.h> |
#include <fcntl.h> |
| 30 |
#include <string.h> |
#include <string.h> |
| 194 |
} |
} |
| 195 |
} |
} |
| 196 |
|
|
| 197 |
|
if (SYS_data_file_reload && !SYS_server_exit) |
| 198 |
|
{ |
| 199 |
|
SYS_data_file_reload = 0; |
| 200 |
|
|
| 201 |
|
for (int i = 0; i < data_files_load_startup_count; i++) |
| 202 |
|
{ |
| 203 |
|
if (load_file_shm(data_files_load_startup[i]) < 0) |
| 204 |
|
{ |
| 205 |
|
log_error("load_file_mmap(%s) error\n", data_files_load_startup[i]); |
| 206 |
|
} |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
log_std("Reload data files successfully\n"); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
nfds = epoll_wait(epollfd, events, MAX_EVENTS, 100); // 0.1 second |
nfds = epoll_wait(epollfd, events, MAX_EVENTS, 100); // 0.1 second |
| 213 |
|
|
| 214 |
if (nfds < 0) |
if (nfds < 0) |