From: Ira W. Snyder <devel@irasnyder.com>
Date: Wed, 23 Jan 2008 07:53:26 +0000 (-0800)
Subject: Don't try to catch SIGKILL
X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=a005cb7790b4daed29d71562c2552ab3d9a937d4;p=tilda-gobject.git

Don't try to catch SIGKILL

It is impossible to catch SIGKILL, so don't even bother trying...
---

diff --git a/tilda.c b/tilda.c
index 25209fc..02b6848 100644
--- a/tilda.c
+++ b/tilda.c
@@ -203,7 +203,9 @@ tilda_signal_handlers_init ()
 	sigaction (SIGQUIT, &sa, NULL);
 	sigaction (SIGABRT, &sa, NULL);
 	sigaction (SIGTERM, &sa, NULL);
-	sigaction (SIGKILL, &sa, NULL);
+
+	/* SIGKILL cannot be caught according to sigaction(2) and signal(7) */
+	/* sigaction (SIGKILL, &sa, NULL); */
 }
 
 int main (int argc, char *argv[])