main: call olsr_exit in olsr_reconfigure
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 10 Nov 2015 10:17:16 +0000 (11:17 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 11 Nov 2015 16:09:28 +0000 (17:09 +0100)
Since that is the proper way to exit.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/main.c

index 2d754a4..acbe56b 100644 (file)
@@ -490,7 +490,7 @@ void olsr_reconfigure(int signo __attribute__ ((unused))) {
 #ifndef _WIN32
   errno = errNr;
 #endif
-  olsr_shutdown(0);
+  olsr_exit(NULL, 0);
 }
 #endif /* _WIN32 */