Patch for inn-2.4.2 to fix inn throttled during startup handling

John Wehle john at feith.com
Wed Aug 4 22:31:02 UTC 2004


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

  innflags:               -m t
  readerswhenstopped:     true

results in innd complaining:

  innd: dbz not open for this history file /usr/local/news/db/history

when "ctlinnd go" is executed because the history file was
opened during startup and never closed.  When CCgo later
calls InndHisOpen to open the history file the history
code gets upset because hisv6_dbzowner is still set from
the original open.

Changes:

  1) Close the history file when throttled from the command line.

Enjoy!

-- John Wehle (john at feith.com)
---------------8<-----------------8<-------------------8<----------------
*** innd/innd.c.ORIGINAL	Tue Apr  1 01:07:58 2003
--- innd/innd.c	Wed Aug  4 18:17:26 2004
***************
*** 662,667 ****
--- 662,672 ----
          if (!ICDrenumberactive())
              die("SERVER cant renumber");
      }
+ 
+     /* assuming we haven't been pause or throttled from the command line :-) */
+     if (Mode != OMrunning)
+         InndHisClose();
+ 
      syslog(LOG_NOTICE, "SERVER starting");
      CHANreadloop();
  
-------------------------------------------------------------------------
|   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