summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-11-22 15:19:21 -0500
committerColin Walters <walters@verbum.org>2013-11-22 15:22:26 -0500
commitcc62c15832ee4e2eeff336de4dff76d7f718f432 (patch)
tree527b1e33861278d9b17d658ec63111789cb5a20d /common
parent28a6e3cbeb875eeaca3dd2d186db56201f3f80b0 (diff)
downloadgdm-cc62c15832ee4e2eeff336de4dff76d7f718f432.tar.gz
Don't enable debugging by default if the version is "unstable"
I'm open to negotiation for this, but basically...gdm is at present second only to the kernel in the sheer amount of spew it emits - when the version is "unstable". But it always will be for Continuous. Nowadays of course, I think Continuous helps act as a testing system for GDM that obviates a lot of the need for lots of debugging info for gdm during "unstable" cycles. I suspect that we will over time add other informational messages at strategic points by default; this patch is not the end of the story. It's a new beginning. https://bugzilla.gnome.org/show_bug.cgi?id=715037
Diffstat (limited to 'common')
-rw-r--r--common/gdm-common.c21
-rw-r--r--common/gdm-common.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index ae6129c2..99f9857d 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -45,27 +45,6 @@ gdm_make_temp_dir (char *template)
}
gboolean
-gdm_is_version_unstable (void)
-{
- char **versions;
- gboolean unstable;
-
- unstable = FALSE;
-
- versions = g_strsplit (VERSION, ".", 3);
- if (versions && versions [0] && versions [1]) {
- int major;
- major = atoi (versions [1]);
- if ((major % 2) != 0) {
- unstable = TRUE;
- }
- }
- g_strfreev (versions);
-
- return unstable;
-}
-
-gboolean
gdm_clear_close_on_exec_flag (int fd)
{
int flags;
diff --git a/common/gdm-common.h b/common/gdm-common.h
index f9033aa5..be4d1032 100644
--- a/common/gdm-common.h
+++ b/common/gdm-common.h
@@ -38,8 +38,6 @@
G_BEGIN_DECLS
-gboolean gdm_is_version_unstable (void);
-
int gdm_wait_on_pid (int pid);
int gdm_wait_on_and_disown_pid (int pid,
int timeout);