[Olsr-dev] [PATCH v1 15/43] main: remove the lock file in olsr_shutdown

Ferry Huberts (spam-protected)
Wed Nov 11 17:21:48 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main.c b/src/main.c
index 0103dcd..627e53b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();
-- 
2.5.0




More information about the Olsr-dev mailing list