Changeset 1625 in MondoRescue for branches/stable/mondo/src/common/libmondo-fork.c
- Timestamp:
- Sep 9, 2007, 1:00:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-fork.c
r1609 r1625 7 7 #include "mr_str.h" 8 8 #include "mr_gettext.h" 9 #include "mr_conf.h" 9 10 10 11 #include "mondostructures.h" … … 23 24 extern char *MONDO_LOGFILE; 24 25 pid_t g_buffer_pid = 0; 25 26 extern struct mr_ar_conf *mr_conf = NULL; 26 27 27 28 /** … … 178 179 * Run a program and log its output (stdout and stderr) to the logfile. 179 180 * @param program The program to run. Passed to the shell, so you can use pipes etc. 180 * @param debug_level If @p g_loglevel is higher than this, do not log the output.181 * @param debug_level If @p log_level is higher than this, do not log the output. 181 182 * @return The exit code of @p program (depends on the command, but 0 almost always indicates success). 182 183 */ … … 205 206 } 206 207 207 if (debug_level <= g_loglevel) {208 if (debug_level <= mr_conf->log_level) { 208 209 log_if_success = TRUE; 209 210 log_if_failure = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.