[INN-COMMITTERS] inn/innd (util.c innd.c)

Russ Allbery rra at stanford.edu
Thu Dec 21 04:42:50 UTC 2000


    Date: Wednesday, December 20, 2000 @ 20:42:50
  Author: rra

Update of /dist1/cvs/isc/inn/inn/innd
     from pub3.rc.vix.com:/tmp/cvs-serv11020

   Added: util.c
Modified: innd.c

Significantly overhauled.  Utility functions used in various places inside
innd broken out of innd.c into a new file util.c.  xchown removed; innd now
refuses to run as root and otherwise runs under whatever UID and GID that
it's started with (preferrably via inndstart).  Error handlers for warn and
die now set up in main.  A variable set by signal handlers now declared
volatile sig_atomic_t.  Some very old debugging cruft removed.  Log
buffering now set via setvbuf instead of setbuf or setbuffer, since this is
ANSI C and doesn't require allocating buffers separately.  Some now-unused
global variables removed.  Clean up some of the error reporting in main to
use warn and die.  Remove the code to daemonize innd in favor of calling
the new daemonize function in libinn.




More information about the inn-committers mailing list