Comment added for the SIGINT handler.
authorviric@llimona
Mon, 15 May 2006 17:07:58 +0200
changeset 40 8c781743e0d0
parent 39 60858d13b22c
child 41 fc273c0e8250
Comment added for the SIGINT handler.
syslog_in_unix.c
--- a/syslog_in_unix.c	Mon May 15 16:57:37 2006 +0200
+++ b/syslog_in_unix.c	Mon May 15 17:07:58 2006 +0200
@@ -130,6 +130,11 @@
 
 	program_ignore_hup();
 	program_handler(SIGTERM, term_handler);
+
+	/* If Ctrl-C is typed in a xterm, it will send SIGINT to the
+	group process running in it. So even if we only run the kernel,
+	this son will receive the xterm's SIGINT. We must handle that,
+	as this program should unlink the socket, and not only close it. */
 	program_handler(SIGINT, term_handler);
 
 	server_loop(argv[1]);