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

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



---
 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();
-- 
1.6.6


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