[kazehakase-svn] [3491] SIG_IGN for given signum while terminating.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Sun Mar 23 01:01:50 JST 2008


Revision: 3491
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3491
Author:   pal_gene
Date:     2008-03-23 01:01:50 +0900 (Sun, 23 Mar 2008)

Log Message:
-----------
SIG_IGN for given signum while terminating.
and add message terminating.

Modified Paths:
--------------
    kazehakase/trunk/src/main.c

Modified: kazehakase/trunk/src/main.c
===================================================================
--- kazehakase/trunk/src/main.c	2008-03-22 15:33:49 UTC (rev 3490)
+++ kazehakase/trunk/src/main.c	2008-03-22 16:01:50 UTC (rev 3491)
@@ -417,6 +417,10 @@
 /* TODO:should handle more about other signum? */
 void kz_sighandle_exit(int signum)
 {
+	g_warning("Start terminate ...");
+	struct sigaction *act = g_malloc0(sizeof(struct sigaction));
+	act->sa_handler = SIG_IGN;
+	sigaction(signum, act, NULL);
 	gtk_main_quit();
 }
 




More information about the Kazehakase-cvs mailing list
Back to archive index