[gdm] The D-Bus connection between the worker and the GUI should never timeout, so pass INT_MAX for the ti



commit 3f2cfb806f5303968dd4e0a5be95b68b861ebee4
Author: Brian Cameron <Brian Cameron sun com>
Date:   Wed Jan 27 10:22:44 2010 -0600

    The D-Bus connection between the worker and the GUI should never timeout,
    so pass INT_MAX for the timeout rather than 10 minutes.  Fixes bug #607861.

 daemon/gdm-session-worker.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 346bf80..deb1cab 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -87,8 +87,6 @@
 #define GDM_SESSION_LOG_FILENAME ".xsession-errors"
 #endif
 
-#define MESSAGE_REPLY_TIMEOUT (10 * 60 * 1000)
-
 #define MAX_FILE_SIZE     65536
 
 enum {
@@ -678,9 +676,14 @@ send_question_method (GdmSessionWorker *worker,
                                         &question);
 
         dbus_error_init (&error);
+
+        /*
+         * Pass in INT_MAX for the timeout.  This is a special value that
+         * means block forever.  This fixes bug #607861
+         */
         reply = dbus_connection_send_with_reply_and_block (worker->priv->connection,
                                                            message,
-                                                           MESSAGE_REPLY_TIMEOUT,
+                                                           INT_MAX,
                                                            &error);
         dbus_message_unref (message);
 



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