summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorBrian Cameron <Brian.Cameron@sun.com>2010-01-27 10:22:44 -0600
committerBrian Cameron <Brian.Cameron@sun.com>2010-01-27 10:22:44 -0600
commit3f2cfb806f5303968dd4e0a5be95b68b861ebee4 (patch)
tree14879564052987eb02d4eccb41da76590923b45f /daemon
parenta580b1dc2d1cbc8eedbe1c3c1089bf04b12ceb01 (diff)
downloadgdm-3f2cfb806f5303968dd4e0a5be95b68b861ebee4.tar.gz
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.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm-session-worker.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 346bf803..deb1cabd 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);