main: call olsr_exit when writing the PID file fails
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 10 Nov 2015 08:57:00 +0000 (09:57 +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 839da38..ee844a1 100644 (file)
@@ -366,7 +366,7 @@ int main(int argc, char *argv[]) {
 #endif /* _WIN32 */
 
   if (!writePidFile()) {
-    olsr_shutdown(0);
+    olsr_exit(NULL, EXIT_FAILURE);
   }
 
   /*