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 /extras/run_directory | |
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 'extras/run_directory')
-rw-r--r-- | extras/run_directory/run_directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/run_directory/run_directory.c b/extras/run_directory/run_directory.c index 770d8d84a1..5107f85aef 100644 --- a/extras/run_directory/run_directory.c +++ b/extras/run_directory/run_directory.c @@ -27,7 +27,7 @@ #include "../../logging.h" #include "run_directory.h" -static int run_program(const char *filename, const char *subsystem) +static int exec_program(const char *filename, const char *subsystem) { pid_t pid; @@ -59,7 +59,7 @@ int run_directory(const char *dir, const char *suffix, const char *subsystem) add_matching_files(&name_list, dir, suffix); list_for_each_entry_safe(name_loop, name_tmp, &name_list, node) { - run_program(name_loop->name, subsystem); + exec_program(name_loop->name, subsystem); list_del(&name_loop->node); } |