main: remove the lock file in olsr_shutdown
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 9 Nov 2015 14:54:02 +0000 (15:54 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 11 Nov 2015 16:09:26 +0000 (17:09 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/main.c

index 0103dcd..627e53b 100644 (file)
@@ -796,6 +796,9 @@ static void olsr_shutdown(int signo __attribute__ ((unused)))
   close(olsr_cnf->rts);
 #endif /* defined __FreeBSD__ || defined __FreeBSD_kernel__ || defined __APPLE__ || defined __NetBSD__ || defined __OpenBSD__ */
 
+  /* remove the lock file */
+  olsr_remove_lock_file();
+
   /* Free cookies and memory pools attached. */
   OLSR_PRINTF(0, "Free all memory...\n");
   olsr_delete_all_cookies();