2006-03-02 John (J5) Palmieri <johnp@redhat.com>
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 2 Mar 2006 22:24:28 +0000 (22:24 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 2 Mar 2006 22:24:28 +0000 (22:24 +0000)
commitda4182fb2976608bea64d676677681fdf2cd910b
tree0327d6778eb9743b8b11d13227ed2cc4f0e96430
parente6eea749eea428a33957b7129f920b9ae47090da
2006-03-02  John (J5) Palmieri  <johnp@redhat.com>

* dbus/dbus-connection.c:
(_dbus_connection_block_pending_call):
Check to see if our data has already been read off the connection
by another blocking pending call before we block in poll.
(check_for_reply_and_update_dispatch_unlocked):
Code taken from _dbus_connection_block_pending_call - checks for
an already read reply and updates the dispatch if there is one.

* test/name-test/test-pending-call-dispatch.c:
New test for making sure we don't get stuck polling a
dbus connection which has no data on the socket when
blocking out of order on two or more pending calls.
ChangeLog
dbus/dbus-connection.c
test/name-test/Makefile.am
test/name-test/run-test.sh
test/name-test/test-pending-call-dispatch.c [new file with mode: 0644]