diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-02-23 03:17:47 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-02-23 03:17:47 +0800 |
commit | 72b9440cd4449b64d9ff697341d6fd82a811de32 (patch) | |
tree | c81e17f308889d85b5cb113aef01cb7984072e1d /sysutils/consolekit/files/patch-src_test-vt-monitor.c | |
parent | 3f7c35ea164ccce1ea5736199d7c374ee75f2bb7 (diff) | |
download | marcuscom-ports-72b9440cd4449b64d9ff697341d6fd82a811de32.tar.gz marcuscom-ports-72b9440cd4449b64d9ff697341d6fd82a811de32.tar.zst marcuscom-ports-72b9440cd4449b64d9ff697341d6fd82a811de32.zip |
Update to 0.4.4.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15271 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/consolekit/files/patch-src_test-vt-monitor.c')
-rw-r--r-- | sysutils/consolekit/files/patch-src_test-vt-monitor.c | 33 |
1 files changed, 33 insertions, 0 deletions
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 <pwd.h> + #include <string.h> + #include <errno.h> ++#include <signal.h> + + #include <locale.h> + +@@ -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); |