search for: use_tty

Displaying 1 result from an estimated 1 matches for "use_tty".

2008 Jun 07
1
directing output of tftpd to stdout, instead of syslog()
...nconvenient when running interctivitly. tftpd has a no daemonize flag -- this is not used either started it normally or from the sample inetd... I'm thinking of doing: my_syslog(int priority, const char *format, ...) { va_list ap; va_start(ap, format); if(use_tty == TRUE) vfprintf(stderr, format, ap); else vsyslog(priority, format, ap); va_end(ap); } and building with -Dsyslog=my_syslog I like the fact when the startup options are incorrect, they're logged...so I need "use_tty" set up before anythin...