[tac_plus] Re: Patch for tac_plus to fix the -G option

john heasley heas at shrubbery.net
Mon Jun 16 18:51:20 UTC 2008


Mon, Jun 16, 2008 at 06:51:23PM +0200, Kiss Gabor (Bitman):
> Dear Nathan,
> 
> > Attached is a patch against version F4.0.4.15 of the tacacs+ package
> > that fixes support for the -G command-line option.  My understanding
> > of -G is that it is supposed to keep tac_plus running in the
> > foreground: no forking, no detaching from the tty, etc.  The code in
> > the F4.0.4.15 distribution does not do this: it forks and detaches.
> 
> Eeerrrr... tac_plus(8) writes:
> 
>     -g     Single threaded mode.  The daemon will only accept and service a
>            single connection at a time without forking and without closing
>            file descriptors.  All log messages appear on standard output.
> 
>     -G     Remain in the foreground, but not single-threaded nor logging to
>            the tty.
> 
> So as far as I can understand -G never promised to log on tty.
> Maybe you wanted to use -g.

It (the daemon with -g, IIRC) used to log to the tty, which I tought was
silly since some stuff would go to the syslog and others to the tty, which
may it a pain to correlate.  I changed that long ago.

> How did you figure out if it "detached" from control terminal or not?
> Did process accept SIGINT (^C) from keyboard or not?
> 
> Cheers
> 
> Gabor
> _______________________________________________
> tac_plus mailing list
> tac_plus at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/tac_plus


More information about the tac_plus mailing list