/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-0.9.6.0-daemon-signals.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-0.9.6.0-daemon-signals.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Sep 13 09:54:12 2012 UTC (23 months, 1 week ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Version bump with various fixes. No longer saves thousands of temporary ipv6 routes (bug #428274, thanks to Matthias Nagel). No longer installs dispatcher and init scripts when USE=systemd to avoid annoying systemd users (bug #434692, thanks to Arne St├Ącker). Drop old.

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 From 24e875ab6cd24deed32fc85639dc0a4b196d1eed Mon Sep 17 00:00:00 2001
2 From: Alexandre Rostovtsev <tetromino@gentoo.org>
3 Date: Thu, 13 Sep 2012 05:32:53 -0400
4 Subject: [PATCH] core: wait until we daemonized before setting up signals
5 (bgo #683932)
6
7 If we mask signals before daemonizing, the daemon process will not be
8 able to handle them, and thus would be unkillable with anything other
9 than SIGKILL.
10 ---
11 src/main.c | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
13
14 diff --git a/src/main.c b/src/main.c
15 index 8bc6d3f..edf4b5f 100644
16 --- a/src/main.c
17 +++ b/src/main.c
18 @@ -401,10 +401,6 @@ main (int argc, char *argv[])
19 exit (1);
20 }
21
22 - /* Set up unix signal handling */
23 - if (!setup_signals ())
24 - exit (1);
25 -
26 /* Set locale to be able to use environment variables */
27 setlocale (LC_ALL, "");
28
29 @@ -501,6 +497,10 @@ main (int argc, char *argv[])
30 wrote_pidfile = TRUE;
31 }
32
33 + /* Set up unix signal handling */
34 + if (!setup_signals ())
35 + exit (1);
36 +
37 if (g_fatal_warnings) {
38 GLogLevelFlags fatal_mask;
39
40 --
41 1.7.12

  ViewVC Help
Powered by ViewVC 1.1.20