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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>

--- 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux