olsr_exit: also flush stderr on exit
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 14:22:20 +0000 (15:22 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 14:22:20 +0000 (15:22 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/olsr.c

index a5eb06e..6acc22c 100644 (file)
@@ -563,6 +563,7 @@ olsr_exit(const char *msg, int val)
     olsr_syslog(OLSR_LOG_ERR, "olsrd exit: %s\n", msg);
   }
   fflush(stdout);
+  fflush(stderr);
 
   if (olsr_cnf) {
     olsr_cnf->exit_value = val;