/[LeafOK_CVS]/lbbs/src/net_server.c
ViewVC logotype

Diff of /lbbs/src/net_server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.34 by sysadm, Thu May 15 06:24:11 2025 UTC Revision 1.35 by sysadm, Fri May 16 14:09:31 2025 UTC
# Line 24  Line 24 
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>
# Line 193  int net_server(const char *hostaddr, in_ Line 194  int net_server(const char *hostaddr, in_
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_mmap(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)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1