diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-02-06 16:46:38 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-02-06 16:46:38 +0000 |
commit | f9f93cc61a0b05ba6a1f19a6d0356d73e5e7ee87 (patch) | |
tree | 55a93e1bb940b411e505ffa273a1944775209777 | |
parent | f616d973837ec266c10d34404f859f66b717bfff (diff) | |
download | gdm-f9f93cc61a0b05ba6a1f19a6d0356d73e5e7ee87.tar.gz |
Make sure we retry connecting to the xserver. This also ensures that we
2008-02-06 William Jon McCann <jmccann@redhat.com>
* daemon/gdm-factory-slave.c: (idle_connect_to_display):
* daemon/gdm-product-slave.c: (idle_connect_to_display):
* daemon/gdm-simple-slave.c: (idle_connect_to_display):
* daemon/gdm-slave.c: (gdm_slave_run_script):
* daemon/gdm-xdmcp-chooser-slave.c: (idle_connect_to_display):
* daemon/simple-slave-main.c: (main):
Make sure we retry connecting to the xserver. This also ensures
that we reach the exit if we fail the max number of times.
svn path=/trunk/; revision=5703
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | daemon/gdm-factory-slave.c | 1 | ||||
-rw-r--r-- | daemon/gdm-product-slave.c | 1 | ||||
-rw-r--r-- | daemon/gdm-simple-slave.c | 1 | ||||
-rw-r--r-- | daemon/gdm-slave.c | 4 | ||||
-rw-r--r-- | daemon/gdm-xdmcp-chooser-slave.c | 1 | ||||
-rw-r--r-- | daemon/simple-slave-main.c | 3 |
7 files changed, 22 insertions, 0 deletions
@@ -1,3 +1,14 @@ +2008-02-06 William Jon McCann <jmccann@redhat.com> + + * daemon/gdm-factory-slave.c: (idle_connect_to_display): + * daemon/gdm-product-slave.c: (idle_connect_to_display): + * daemon/gdm-simple-slave.c: (idle_connect_to_display): + * daemon/gdm-slave.c: (gdm_slave_run_script): + * daemon/gdm-xdmcp-chooser-slave.c: (idle_connect_to_display): + * daemon/simple-slave-main.c: (main): + Make sure we retry connecting to the xserver. This also ensures + that we reach the exit if we fail the max number of times. + 2008-02-05 Ray Strode <rstrode@redhat.com> Add PAM auditing logic. Based on patch and feedback from diff --git a/daemon/gdm-factory-slave.c b/daemon/gdm-factory-slave.c index dc9fbc97..5c69dafb 100644 --- a/daemon/gdm-factory-slave.c +++ b/daemon/gdm-factory-slave.c @@ -574,6 +574,7 @@ idle_connect_to_display (GdmFactorySlave *slave) g_warning ("Unable to connect to display after %d tries - bailing out", slave->priv->connection_attempts); exit (1); } + return TRUE; } return FALSE; diff --git a/daemon/gdm-product-slave.c b/daemon/gdm-product-slave.c index 130a643f..4ac5c427 100644 --- a/daemon/gdm-product-slave.c +++ b/daemon/gdm-product-slave.c @@ -322,6 +322,7 @@ idle_connect_to_display (GdmProductSlave *slave) g_warning ("Unable to connect to display after %d tries - bailing out", slave->priv->connection_attempts); exit (1); } + return TRUE; } return FALSE; diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c index 0e36ee99..6b0c7509 100644 --- a/daemon/gdm-simple-slave.c +++ b/daemon/gdm-simple-slave.c @@ -751,6 +751,7 @@ idle_connect_to_display (GdmSimpleSlave *slave) g_warning ("Unable to connect to display after %d tries - bailing out", slave->priv->connection_attempts); exit (1); } + return TRUE; } return FALSE; diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c index 2cae7dcd..ee8fc763 100644 --- a/daemon/gdm-slave.c +++ b/daemon/gdm-slave.c @@ -263,6 +263,7 @@ gdm_slave_run_script (GdmSlave *slave, script = g_build_filename (dir, slave->priv->display_name, NULL); if (g_access (script, R_OK | X_OK) != 0) { + g_debug ("GdmSlave: script %s not found; skipping", script); g_free (script); script = NULL; } @@ -271,6 +272,7 @@ gdm_slave_run_script (GdmSlave *slave, slave->priv->display_hostname != NULL) { script = g_build_filename (dir, slave->priv->display_hostname, NULL); if (g_access (script, R_OK | X_OK) != 0) { + g_debug ("GdmSlave: script %s not found; skipping", script); g_free (script); script = NULL; } @@ -298,12 +300,14 @@ gdm_slave_run_script (GdmSlave *slave, if (script == NULL) { script = g_build_filename (dir, "Default", NULL); if (g_access (script, R_OK | X_OK) != 0) { + g_debug ("GdmSlave: script %s not found; skipping", script); g_free (script); script = NULL; } } if (script == NULL) { + g_debug ("GdmSlave: no script found"); return TRUE; } diff --git a/daemon/gdm-xdmcp-chooser-slave.c b/daemon/gdm-xdmcp-chooser-slave.c index d708208e..b63c0b69 100644 --- a/daemon/gdm-xdmcp-chooser-slave.c +++ b/daemon/gdm-xdmcp-chooser-slave.c @@ -260,6 +260,7 @@ idle_connect_to_display (GdmXdmcpChooserSlave *slave) g_warning ("Unable to connect to display after %d tries - bailing out", slave->priv->connection_attempts); exit (1); } + return TRUE; } return FALSE; diff --git a/daemon/simple-slave-main.c b/daemon/simple-slave-main.c index ffd7dcd7..952b2275 100644 --- a/daemon/simple-slave-main.c +++ b/daemon/simple-slave-main.c @@ -171,6 +171,9 @@ main (int argc, g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free (context); + /* For debugging */ + /*sleep (10);*/ + connection = get_system_bus (); if (connection == NULL) { goto out; |