[Sheepdog] [PATCH 1/3] flush logs before stopping logger

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Aug 14 11:22:50 CEST 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 lib/logger.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/logger.c b/lib/logger.c
index 5d0cc8d..565a397 100644
--- a/lib/logger.c
+++ b/lib/logger.c
@@ -454,6 +454,8 @@ void log_close(void)
 		la->active = 0;
 		waitpid(pid, NULL, 0);
 
+		vprintf(SDOG_WARNING "sheep logger stopped, pid:%d\n", pid);
+		log_flush();
 		closelog();
 		free_logarea();
 	}
-- 
1.7.2.5




More information about the sheepdog mailing list