Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(285)

Issue 7225062: daemon: allow "eavesdrop" match rule (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by Daiki Ueno
Modified:
11 years, 4 months ago
Reviewers:
shawn.p.huang, Peng
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

daemon: allow "eavesdrop" match rule Recent dbus-monitor supplies "eavesdrop" match rule which ibus-daemon does not accept. This patch silently ignores the rule so ibus-daemon behave the same as before. BUG=none Committed: f9ddda1

Patch Set 1 #

Total comments: 2

Patch Set 2 : don't strictly handle eavesdrop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -18 lines) Patch
M bus/matchrule.c View 1 2 chunks +24 lines, -18 lines 0 comments Download
M bus/test-matchrule.c View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Daiki Ueno
Recent dbus-monitor specifies "eavesdrop=true" match rule which ibus-daemon does not accept: $ dbus-monitor --address $IBUS_ADDRESS ...
11 years, 5 months ago (2013-01-29 09:12:32 UTC) #1
Peng
https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c File bus/matchrule.c (right): https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c#newcode532 bus/matchrule.c:532: g_dbus_message_get_destination (message) != NULL) Could you explain how eavesdrop ...
11 years, 5 months ago (2013-01-29 15:33:22 UTC) #2
Daiki Ueno
https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c File bus/matchrule.c (right): https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c#newcode532 bus/matchrule.c:532: g_dbus_message_get_destination (message) != NULL) On 2013/01/29 15:33:22, Peng wrote: ...
11 years, 5 months ago (2013-01-30 02:15:52 UTC) #3
Peng
On 2013/01/30 02:15:52, Daiki Ueno wrote: > https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c > File bus/matchrule.c (right): > > https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c#newcode532 ...
11 years, 5 months ago (2013-01-30 02:19:42 UTC) #4
Daiki Ueno
On 2013/01/30 02:19:42, Peng wrote: > On 2013/01/30 02:15:52, Daiki Ueno wrote: > > https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c ...
11 years, 4 months ago (2013-02-25 09:05:45 UTC) #5
Peng
11 years, 4 months ago (2013-02-25 15:17:50 UTC) #6
On 2013/02/25 09:05:45, Daiki Ueno wrote:
> On 2013/01/30 02:19:42, Peng wrote:
> > On 2013/01/30 02:15:52, Daiki Ueno wrote:
> > > https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c
> > > File bus/matchrule.c (right):
> > > 
> > > https://codereview.appspot.com/7225062/diff/1/bus/matchrule.c#newcode532
> > > bus/matchrule.c:532: g_dbus_message_get_destination (message) != NULL)
> > > On 2013/01/29 15:33:22, Peng wrote:
> > > > Could you explain how eavesdrop works? 
> > > 
> > > From the D-Bus spec:
> > >
> >
>
http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing-m...
> > > 
> > > "...match rules do not match messages which have a DESTINATION field
unless
> > the
> > > match rule specifically requests this by specifying eavesdrop='true' in
the
> > > match rule. eavesdrop='false' restores the default behaviour."
> > > 
> > > This probably means that a client shall not receive any unicast messages
> whose
> > > destination is set to other client.
> > 
> > Thanks. lgtm. Please those info in git log or source code.
> 
> Thinking again, strictly emulating "eavesdrop" rule makes little sense for
ibus.
>  So I've simplified the CL to just ignore the rule (and updated the commit
log).
>  If no objection, I'll commit this instead of the original one.

lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b