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

Diff of /lbbs/src/main.c

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

Revision 1.34 by sysadm, Fri May 16 14:09:31 2025 UTC Revision 1.37 by sysadm, Sun May 18 03:23:57 2025 UTC
# Line 145  int main(int argc, char *argv[]) Line 145  int main(int argc, char *argv[])
145                  return -2;                  return -2;
146          }          }
147    
148            // Load BBS cmd
149            if (load_cmd() < 0)
150            {
151                    return -3;
152            }
153    
154          // Load menus          // Load menus
155          p_bbs_menu = calloc(1, sizeof(MENU_SET));          p_bbs_menu = calloc(1, sizeof(MENU_SET));
156          if (p_bbs_menu == NULL)          if (p_bbs_menu == NULL)
# Line 158  int main(int argc, char *argv[]) Line 164  int main(int argc, char *argv[])
164                  free(p_bbs_menu);                  free(p_bbs_menu);
165                  return -3;                  return -3;
166          }          }
167          unload_menu_shm(p_bbs_menu);          // unload_menu_shm(p_bbs_menu);
168    
169          // Load data files          // Load data files
170          if (file_loader_init(FILE_MMAP_COUNT_LIMIT) < 0)          if (file_loader_init() < 0)
171          {          {
172                  log_error("file_loader_init() error\n");                  log_error("file_loader_init() error\n");
173                  return -4;                  return -4;
174          }          }
175          for (int i = 0; i < data_files_load_startup_count; i++)          for (int i = 0; i < data_files_load_startup_count; i++)
176          {          {
177                  if (load_file_mmap(data_files_load_startup[i]) < 0)                  if (load_file_shm(data_files_load_startup[i]) < 0)
178                  {                  {
179                          log_error("load_file_mmap(%s) error\n", data_files_load_startup[i]);                          log_error("load_file_mmap(%s) error\n", data_files_load_startup[i]);
180                  }                  }


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

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