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

Issue 3970044: Fix some race conditions during create engine, also fix dpkg build error. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Peng
Modified:
13 years, 5 months ago
Reviewers:
Yusuke Sato
CC:
satorux
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Fix some race conditions during create engine, also fix dpkg build error. BUG=chromium-os:10750 TEST=on Linux desktop

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -16 lines) Patch
M bus/engineproxy.c View 1 3 chunks +37 lines, -16 lines 0 comments Download
M debian/libibus-1.0-0.symbols View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Peng
13 years, 5 months ago (2011-01-20 15:32:46 UTC) #1
Yusuke Sato
Thanks for the patch for 10750. Could you explain (in the CL description) what kind ...
13 years, 5 months ago (2011-01-21 02:16:07 UTC) #2
Peng
I guess sometime, the timeout is triggered between notify::factory signal, and bus_factory_proxy_create_engine finished. It may ...
13 years, 5 months ago (2011-01-21 15:45:23 UTC) #3
Yusuke Sato
13 years, 5 months ago (2011-01-21 15:50:01 UTC) #4
Thanks for adding comments, LGTM

On 2011/01/21 15:45:23, Shawn.P.Huang wrote:
> I guess sometime, the timeout is triggered between notify::factory signal, and
> bus_factory_proxy_create_engine finished. It may cause the problem.
> 
> http://codereview.appspot.com/3970044/diff/1/bus/engineproxy.c
> File bus/engineproxy.c (right):
> 
> http://codereview.appspot.com/3970044/diff/1/bus/engineproxy.c#newcode660
> bus/engineproxy.c:660: /* Handler of notify::factory should be remove. */
> On 2011/01/21 02:16:07, Yusuke Sato wrote:
> > remove -> removed
> 
> Done.
> 
> http://codereview.appspot.com/3970044/diff/1/bus/engineproxy.c#newcode672
> bus/engineproxy.c:672: }
> On 2011/01/21 02:16:07, Yusuke Sato wrote:
> > What happens if data->factory is NULL for some reason?
> > 
> > My guess is that the timeout_cb is called eventually and the callback
function
> > returns G_DBUS_ERROR. Is this correct?
> 
> I think it is better to continue waiting for timeout or next notify::factory
> signal.
> 
> http://codereview.appspot.com/3970044/diff/1/bus/engineproxy.c#newcode672
> bus/engineproxy.c:672: }
> On 2011/01/21 02:16:07, Yusuke Sato wrote:
> > What happens if data->factory is NULL for some reason?
> > 
> > My guess is that the timeout_cb is called eventually and the callback
function
> > returns G_DBUS_ERROR. Is this correct?
> 
> Done.
Sign in to reply to this message.

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