/[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.66 by sysadm, Fri Oct 24 02:03:15 2025 UTC Revision 1.68 by sysadm, Sun Nov 2 08:13:50 2025 UTC
# Line 171  int main(int argc, char *argv[]) Line 171  int main(int argc, char *argv[])
171                  goto cleanup;                  goto cleanup;
172          }          }
173    
174            // Check section aid location dir
175            ret = mkdir(VAR_SECTION_AID_LOC_DIR, 0750);
176            if (ret == -1 && errno != EEXIST)
177            {
178                    log_error("mkdir(%s) error (%d)\n", VAR_SECTION_AID_LOC_DIR, errno);
179                    goto cleanup;
180            }
181    
182          // Initialize data pools          // Initialize data pools
183          if ((fp = fopen(VAR_ARTICLE_BLOCK_SHM, "w")) == NULL)          if ((fp = fopen(VAR_ARTICLE_BLOCK_SHM, "w")) == NULL)
184          {          {
# Line 242  int main(int argc, char *argv[]) Line 250  int main(int argc, char *argv[])
250          {          {
251                  if (load_file(data_files_load_startup[i]) < 0)                  if (load_file(data_files_load_startup[i]) < 0)
252                  {                  {
253                          log_error("load_file_mmap(%s) error\n", data_files_load_startup[i]);                          log_error("load_file(%s) error\n", data_files_load_startup[i]);
254                  }                  }
255          }          }
256    


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

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