[stgt] [BUG FIX][PATCH] The logger won't die.

Hirokazu Takahashi taka at valinux.co.jp
Mon Sep 27 15:17:50 CEST 2010


Hi,

I found a bug and this patch will fix it.
Even after a tgt-1.0.8 daemon exited with an error, the logger was still
running, but it left a message "tgtd logger exits abnormally, pid:18079."

A tgtd logger should exit in log_sigsegv signal handler.

Thank you,
Hirokazu Takahashi.


Signed-off-by: Hirokazu Takahashi <taka at valinux.co.jp>

--- usr.ORG/log.c	2010-09-17 11:13:22.000000000 +0900
+++ usr/log.c	2010-09-17 16:24:35.000000000 +0900
@@ -340,6 +344,7 @@ static void log_sigsegv(void)
 	log_flush();
 	closelog();
 	free_logarea();
+	exit(1);
 }
 
 int log_init(char *program_name, int size, int daemon, int debug)
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list