From 27f877e60f1c1793d6fafdd888e7e367c44b2eb9 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 11 Aug 2005 17:32:59 +0200 Subject: allow logging of all output from executed tools If USE_DEBUG=true and udev_log="debug", all output of the forked programs to stdout and stderr is send to syslog. Signed-off-by: Kay Sievers --- udevstart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'udevstart.c') diff --git a/udevstart.c b/udevstart.c index 23a13e08ff..90b87b8377 100644 --- a/udevstart.c +++ b/udevstart.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -164,7 +165,7 @@ run: if (strncmp(name_loop->name, "socket:", strlen("socket:")) == 0) pass_env_to_socket(&name_loop->name[strlen("socket:")], devpath, "add"); else - execute_program(name_loop->name, udev.subsystem, NULL, 0, NULL); + run_program(name_loop->name, udev.subsystem, NULL, 0, NULL, (udev_log_priority >= LOG_DEBUG)); } } exit: -- cgit v1.2.3-54-g00ecf