Patch for inn-2.3.3 to fix readerswhenstopped startup handling

John Wehle john at feith.com
Thu Oct 10 18:28:23 UTC 2002


Currently running rc.news start with inn.conf containing:

  innflags:               -m t
  readerswhenstopped:     true

results in innd starting with the Server and Readers throttled
which is incorrect since readerswhenstopped is true.

Changes:

  1) Fix logic which sets NNRPReason.

Enjoy!

-- John Wehle (john at feith.com)
---------------8<-----------------8<-------------------8<----------------
*** innd/innd.c.ORIGINAL	Mon May  6 02:02:07 2002
--- innd/innd.c	Tue Oct  8 22:15:22 2002
*************** int main(int ac, char *av[])
*** 716,722 ****
      ac -= optind;
      if (ac != 0)
  	Usage();
!     if (ModeReason && innconf->readerswhenstopped)
  	NNRPReason = COPY(ModeReason);
  
      if (ShouldSyntaxCheck) {
--- 716,722 ----
      ac -= optind;
      if (ac != 0)
  	Usage();
!     if (ModeReason && !innconf->readerswhenstopped)
  	NNRPReason = COPY(ModeReason);
  
      if (ShouldSyntaxCheck) {
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john at feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



More information about the inn-bugs mailing list