Capture and log STDOUT and STDERR output from dhcp-script.

This commit is contained in:
Petr Menšík
2017-04-16 20:20:08 +01:00
committed by Simon Kelley
parent bc515b71ec
commit c77fb9d8f0
6 changed files with 100 additions and 33 deletions

View File

@@ -288,7 +288,9 @@ void my_syslog(int priority, const char *format, ...)
func = "-tftp";
else if ((LOG_FACMASK & priority) == MS_DHCP)
func = "-dhcp";
else if ((LOG_FACMASK & priority) == MS_SCRIPT)
func = "-script";
#ifdef LOG_PRI
priority = LOG_PRI(priority);
#else