diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-08-11 17:32:59 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-08-11 17:32:59 +0200 |
commit | 27f877e60f1c1793d6fafdd888e7e367c44b2eb9 (patch) | |
tree | 9c44dd776b7799bae3bfcf6ea445bb59c1a4605f /udev.c | |
parent | 7fd0de4984deac2e51f9b85c156f200beadbc7ef (diff) |
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 <kay.sievers@suse.de>
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,6 +28,7 @@ #include <errno.h> #include <signal.h> #include <unistd.h> +#include <syslog.h> #include "libsysfs/sysfs/libsysfs.h" #include "udev_libc_wrapper.h" @@ -127,7 +128,7 @@ int main(int argc, char *argv[], char *envp[]) if (strncmp(name_loop->name, "socket:", strlen("socket:")) == 0) pass_env_to_socket(&name_loop->name[strlen("socket:")], devpath, action); 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)); } } |