[gnome-settings-daemon/wip/claudio/CI] fixup: no unix signal error handlinfixup: no unix signal error handlingg



commit d6017886854b74510e650b302135bda1fb495d0d
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Feb 5 13:16:12 2019 +0100

    fixup: no unix signal error handlinfixup: no unix signal error handlingg

 plugins/common/daemon-skeleton-gtk.h | 7 -------
 plugins/common/daemon-skeleton.h     | 7 -------
 2 files changed, 14 deletions(-)
---
diff --git a/plugins/common/daemon-skeleton-gtk.h b/plugins/common/daemon-skeleton-gtk.h
index c0420434..b140324c 100644
--- a/plugins/common/daemon-skeleton-gtk.h
+++ b/plugins/common/daemon-skeleton-gtk.h
@@ -14,7 +14,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <locale.h>
-#include <errno.h>
 
 #include <glib-unix.h>
 #include <glib/gi18n.h>
@@ -207,12 +206,6 @@ install_signal_handler (void)
 
   source = g_unix_signal_source_new (SIGTERM);
 
-  if (source == NULL)
-    {
-      g_warning ("Failed installing SIGTERM handler: %s", g_strerror (errno));
-      return;
-    }
-
   g_source_set_callback (source, handle_sigterm, NULL, NULL);
   g_source_attach (source, NULL);
 }
diff --git a/plugins/common/daemon-skeleton.h b/plugins/common/daemon-skeleton.h
index 73b6ac2e..1753c2f8 100644
--- a/plugins/common/daemon-skeleton.h
+++ b/plugins/common/daemon-skeleton.h
@@ -14,7 +14,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <locale.h>
-#include <errno.h>
 
 #include <glib-unix.h>
 #include <glib/gi18n.h>
@@ -184,12 +183,6 @@ install_signal_handler (GMainLoop *loop)
 
   source = g_unix_signal_source_new (SIGTERM);
 
-  if (source == NULL)
-    {
-      g_warning ("Failed installing SIGTERM handler: %s", g_strerror (errno));
-      return;
-    }
-
   g_source_set_callback (source, handle_sigterm, loop, NULL);
   g_source_attach (source, NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]