/[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.49 by sysadm, Fri May 30 12:51:00 2025 UTC Revision 1.50 by sysadm, Wed Jun 4 13:42:53 2025 UTC
# Line 137  int main(int argc, char *argv[]) Line 137  int main(int argc, char *argv[])
137    
138          if ((!daemon) && std_log_redir)          if ((!daemon) && std_log_redir)
139          {          {
140                  log_std_redirect(STDERR_FILENO);                  log_common_redir(STDERR_FILENO);
141          }          }
142          if ((!daemon) && error_log_redir)          if ((!daemon) && error_log_redir)
143          {          {
144                  log_err_redirect(STDERR_FILENO);                  log_error_redir(STDERR_FILENO);
145          }          }
146    
147          // Load configuration          // Load configuration
# Line 248  int main(int argc, char *argv[]) Line 248  int main(int argc, char *argv[])
248                  last_aid = article_block_last_aid();                  last_aid = article_block_last_aid();
249          } while (ret == LOAD_ARTICLE_COUNT_LIMIT);          } while (ret == LOAD_ARTICLE_COUNT_LIMIT);
250    
251          log_std("Initially load %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());          log_common("Initially load %d articles, last_aid = %d\n", article_block_article_count(), article_block_last_aid());
252    
253          // Set signal handler          // Set signal handler
254          signal(SIGHUP, sig_hup_handler);          signal(SIGHUP, sig_hup_handler);
# Line 292  cleanup: Line 292  cleanup:
292                  log_error("unlink(%s) error\n", VAR_SECTION_LIST_SHM);                  log_error("unlink(%s) error\n", VAR_SECTION_LIST_SHM);
293          }          }
294    
295          log_std("Main process exit normally\n");          log_common("Main process exit normally\n");
296    
297          return 0;          return 0;
298  }  }


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

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