diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-08-27 02:51:45 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-08-27 02:51:45 +0800 |
commit | f9447e339a56d396f2f109b312bcdfb32e4d6be9 (patch) | |
tree | 6e14ffdb547bbaeef7cf015edce324c92eb0418f /sysutils/consolekit/files/patch-src_main.c | |
parent | 6387e0581c9136115888c8cc4def1288df7f4334 (diff) | |
download | marcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.tar.gz marcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.tar.zst marcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.zip |
Update to 0.3.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12738 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/consolekit/files/patch-src_main.c')
-rw-r--r-- | sysutils/consolekit/files/patch-src_main.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sysutils/consolekit/files/patch-src_main.c b/sysutils/consolekit/files/patch-src_main.c new file mode 100644 index 000000000..a791db0f9 --- /dev/null +++ b/sysutils/consolekit/files/patch-src_main.c @@ -0,0 +1,33 @@ +--- src/main.c.orig 2007-11-08 15:05:55.000000000 -0500 ++++ src/main.c 2007-11-08 15:07:39.000000000 -0500 +@@ -226,6 +226,21 @@ sigusr1_handler (int sig) + } + + static void ++setup_termination_signals (void) ++{ ++ struct sigaction sa; ++ ++ sa.sa_handler = SIG_DFL; ++ sigemptyset (&sa.sa_mask); ++ sa.sa_flags = 0; ++ ++ sigaction (SIGTERM, &sa, NULL); ++ sigaction (SIGQUIT, &sa, NULL); ++ sigaction (SIGINT, &sa, NULL); ++ sigaction (SIGHUP, &sa, NULL); ++} ++ ++static void + setup_debug_log_signals (void) + { + struct sigaction sa; +@@ -300,6 +315,8 @@ main (int argc, + + setup_debug_log (debug); + ++ setup_termination_signals (); ++ + connection = get_system_bus (); + if (connection == NULL) { + goto out; |