]> git.meshlink.io Git - catta/commitdiff
daemon: we better stay away from SIGQUIT since it is supposed to cause a core dump
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Nov 2010 02:58:05 +0000 (03:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Nov 2010 03:00:26 +0000 (04:00 +0100)
avahi-daemon/dbus-protocol.c
avahi-daemon/main.c
man/avahi-autoipd.8.xml.in
man/avahi-daemon.8.xml.in
man/avahi-dnsconfd.8.xml.in

index 91ea8fae58f99d8b54fe94dfcfe43bcfcb1ddb74..eb8a6629a4c2541ee0ae34044b808ce8a041af54 100644 (file)
@@ -197,7 +197,7 @@ static DBusHandlerResult msg_signal_filter_impl(AVAHI_GCC_UNUSED DBusConnection
                 server->reconnect_timeout = server->poll_api->timeout_new(server->poll_api, &tv, reconnect_callback, NULL);
         } else {
             avahi_log_warn("Disconnected from D-Bus, exiting.");
-            raise(SIGQUIT);
+            raise(SIGTERM);
         }
 
         return DBUS_HANDLER_RESULT_HANDLED;
index 1e8b2559173a8bcef3147c2864c3f32ddfb87c4d..d46f40a8dddf990f6f5f07766e7e3d01b8f1be08 100644 (file)
@@ -1046,12 +1046,10 @@ static void signal_callback(AvahiWatch *watch, AVAHI_GCC_UNUSED int fd, AVAHI_GC
 
     switch (sig) {
         case SIGINT:
-        case SIGQUIT:
         case SIGTERM:
             avahi_log_info(
                     "Got %s, quitting.",
-                    sig == SIGINT ? "SIGINT" :
-                    (sig == SIGQUIT ? "SIGQUIT" : "SIGTERM"));
+                    sig == SIGINT ? "SIGINT" : "SIGTERM");
             avahi_simple_poll_quit(simple_poll_api);
             break;
 
@@ -1113,7 +1111,7 @@ static int run_server(DaemonConfig *c) {
 
     poll_api = avahi_simple_poll_get(simple_poll_api);
 
-    if (daemon_signal_init(SIGINT, SIGQUIT, SIGHUP, SIGTERM, SIGUSR1, 0) < 0) {
+    if (daemon_signal_init(SIGINT, SIGHUP, SIGTERM, SIGUSR1, 0) < 0) {
         avahi_log_error("Could not register signal handlers (%s).", strerror(errno));
         goto finish;
     }
index 477beb849a823ff2b8d94b100518533eb5f22184..bdd9579ec70d8b1688ce3197a49c29728138170b 100644 (file)
     </section>
 
     <section name="Signals">
-      <p><arg>SIGINT, SIGTERM, SIGQUIT</arg>: avahi-autoipd will shutdown. (Same as <opt>--kill</opt>)</p>
+      <p><arg>SIGINT, SIGTERM</arg>: avahi-autoipd will shutdown. (Same as <opt>--kill</opt>)</p>
       <p><arg>SIGHUP</arg>: avahi-autoipd will reannounce the acquired IP address. (Same as <opt>--refresh</opt>)</p>
     </section>
 
index e93fc734f90a4e026d03b526b9effa5febcdf303..0c2990d3bda84786e66dbdc4b83238c160a51211 100644 (file)
     </section>
 
     <section name="Signals">
-      <p><arg>SIGINT, SIGTERM, SIGQUIT</arg>: avahi-daemon will shutdown. (Same as <opt>--kill</opt>).</p>
+      <p><arg>SIGINT, SIGTERM</arg>: avahi-daemon will shutdown. (Same as <opt>--kill</opt>).</p>
       <p><arg>SIGHUP</arg>: avahi-daemon will reload unicast DNS
       server data from <file>/etc/resolv.conf</file> and static
       service definitions from <file>@servicedir@/</file>. (Same as <opt>--reload</opt>)</p>
index e01ab44a43c7277ec7225014897d10a8452f2688..7b09cd4281ac76c1cd7da984813031ec30c52dc3 100644 (file)
@@ -84,7 +84,7 @@
     </section>
 
     <section name="Signals">
-      <p><arg>SIGINT, SIGTERM, SIGQUIT</arg>: avahi-dnsconfd will shutdown. This is issued by passing --kill to avahi-daemon.</p>
+      <p><arg>SIGINT, SIGTERM</arg>: avahi-dnsconfd will shutdown. This is issued by passing --kill to avahi-daemon.</p>
       <p><arg>SIGHUP</arg>: avahi-dnsconfd will refresh the DNS server data.</p>
     </section>