| 40 |
#include <netinet/in.h> |
#include <netinet/in.h> |
| 41 |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
| 42 |
#include <sys/socket.h> |
#include <sys/socket.h> |
| 43 |
|
#include <sys/stat.h> |
| 44 |
#include <sys/types.h> |
#include <sys/types.h> |
| 45 |
#include <sys/wait.h> |
#include <sys/wait.h> |
| 46 |
|
|
| 510 |
|
|
| 511 |
int net_server(const char *hostaddr, in_port_t port[]) |
int net_server(const char *hostaddr, in_port_t port[]) |
| 512 |
{ |
{ |
| 513 |
|
struct stat file_stat; |
| 514 |
unsigned int addrlen; |
unsigned int addrlen; |
| 515 |
int ret; |
int ret; |
| 516 |
int flags_server[2]; |
int flags_server[2]; |
| 805 |
log_error("Reload BWF conf failed\n"); |
log_error("Reload BWF conf failed\n"); |
| 806 |
} |
} |
| 807 |
|
|
| 808 |
|
// Get EULA modification tm |
| 809 |
|
if (stat(DATA_EULA, &file_stat) == -1) |
| 810 |
|
{ |
| 811 |
|
log_error("stat(%s) error\n", DATA_EULA, errno); |
| 812 |
|
} |
| 813 |
|
else |
| 814 |
|
{ |
| 815 |
|
BBS_eula_tm = file_stat.st_mtim.tv_sec; |
| 816 |
|
} |
| 817 |
|
|
| 818 |
if (detach_menu_shm(&bbs_menu) < 0) |
if (detach_menu_shm(&bbs_menu) < 0) |
| 819 |
{ |
{ |
| 820 |
log_error("detach_menu_shm(bbs_menu) error\n"); |
log_error("detach_menu_shm(bbs_menu) error\n"); |