From 772a0d5ed2c615e91a0ee54a094730e32d893b83 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 8 Nov 2007 20:20:53 +0000 Subject: Update to 0.2.3. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9917 df743ca5-7f9a-e211-a948-0013205c9059 --- .../consolekit/files/patch-src_test-vt-monitor.c | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sysutils/consolekit/files/patch-src_test-vt-monitor.c (limited to 'sysutils/consolekit/files/patch-src_test-vt-monitor.c') diff --git a/sysutils/consolekit/files/patch-src_test-vt-monitor.c b/sysutils/consolekit/files/patch-src_test-vt-monitor.c new file mode 100644 index 000000000..6fb9740f5 --- /dev/null +++ b/sysutils/consolekit/files/patch-src_test-vt-monitor.c @@ -0,0 +1,33 @@ +--- src/test-vt-monitor.c.orig 2007-08-17 13:08:55.000000000 -0400 ++++ src/test-vt-monitor.c 2007-11-08 15:11:37.000000000 -0500 +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #include + +@@ -55,12 +56,22 @@ main (int argc, char **argv) + GError *error; + guint num; + gboolean res; ++ struct sigaction sa; + + if (! g_thread_supported ()) { + g_thread_init (NULL); + } + g_type_init (); + ++ sa.sa_handler = SIG_DFL; ++ sigemptyset (&sa.sa_mask); ++ sa.sa_flags = 0; ++ ++ sigaction (SIGINT, &sa, NULL); ++ sigaction (SIGTERM, &sa, NULL); ++ sigaction (SIGQUIT, &sa, NULL); ++ sigaction (SIGHUP, &sa, NULL); ++ + if (! ck_is_root_user ()) { + g_warning ("Must be run as root"); + exit (1); -- cgit