[Olsr-dev] [PATCH v1 31/43] main: call olsr_exit when writing the PID file fails
Ferry Huberts
(spam-protected)
Wed Nov 11 17:22:04 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 839da38..ee844a1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -366,7 +366,7 @@ int main(int argc, char *argv[]) {
#endif /* _WIN32 */
if (!writePidFile()) {
- olsr_shutdown(0);
+ olsr_exit(NULL, EXIT_FAILURE);
}
/*
--
2.5.0
More information about the Olsr-dev
mailing list