[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [master] logging: fix SIGSEGV when trying to log after closeLog() is called.



Ack.

On 05/19/2010 09:17 AM, Ales Kozumplik wrote:
---
  isys/log.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/isys/log.c b/isys/log.c
index 91ca1bc..574d436 100644
--- a/isys/log.c
+++ b/isys/log.c
@@ -207,6 +207,7 @@ void closeLog(void) {
          fclose(main_log_file);
      if (program_log_file)
          fclose(program_log_file);
+    main_log_tty = main_log_file = program_log_file = NULL;

      /* close syslog logger */
      closelog();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]