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

Kiss Gabor (Bitman) kissg at ssg.ki.iif.hu
Mon Jun 16 16:51:23 UTC 2008


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.

How did you figure out if it "detached" from control terminal or not?
Did process accept SIGINT (^C) from keyboard or not?

Cheers

Gabor


More information about the tac_plus mailing list