main: close the log in olsr_shutdown
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 11 Nov 2015 11:35:36 +0000 (12:35 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 11 Nov 2015 16:09:28 +0000 (17:09 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/main.c

index d4b4a4f..7ced68a 100644 (file)
@@ -664,6 +664,9 @@ static void olsr_shutdown(int signo __attribute__ ((unused)))
   exit_value = olsr_cnf->exit_value;
   olsrd_free_cnf(olsr_cnf);
 
+  /* close the log */
+  olsr_closelog();
+
 #ifndef _WIN32
   errno = errNr;
 #endif