diff options
author | Ales Kozumplik <akozumpl@redhat.com> | 2010-07-19 14:17:58 +0200 |
---|---|---|
committer | Ales Kozumplik <akozumpl@redhat.com> | 2010-07-20 07:33:16 +0200 |
commit | 297340b0163295efd696d45a2514853a5b33acd6 (patch) | |
tree | febedede6321b939d0386710e2246dbb9eb72e45 /pyanaconda/isys | |
parent | 49b7c9c3f21d83b4cdf86d86a5d4bcdf450b9c86 (diff) | |
download | anaconda-297340b0163295efd696d45a2514853a5b33acd6.tar.gz anaconda-297340b0163295efd696d45a2514853a5b33acd6.tar.xz anaconda-297340b0163295efd696d45a2514853a5b33acd6.zip |
modules.c: only log from _doLoadModule() if logging has been initialized.
So one can call _doLoadModule() from init.c.
Diffstat (limited to 'pyanaconda/isys')
-rw-r--r-- | pyanaconda/isys/log.c | 6 | ||||
-rw-r--r-- | pyanaconda/isys/log.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/pyanaconda/isys/log.c b/pyanaconda/isys/log.c index 574d43627..96da57eb0 100644 --- a/pyanaconda/isys/log.c +++ b/pyanaconda/isys/log.c @@ -222,4 +222,10 @@ int getLogLevel(void) { return minLevel; } +/* returns non-null if logging has been initialized */ +int loggingReady(void) +{ + return main_log_tty != NULL; +} + /* vim:set shiftwidth=4 softtabstop=4: */ diff --git a/pyanaconda/isys/log.h b/pyanaconda/isys/log.h index 51de2de72..88d001048 100644 --- a/pyanaconda/isys/log.h +++ b/pyanaconda/isys/log.h @@ -44,6 +44,7 @@ void openLog(); void closeLog(void); void setLogLevel(int minLevel); int getLogLevel(void); +int loggingReady(void); extern int tty_logfd; extern int file_logfd; |