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

Issue 2562041: Fix race condition in bus_ibus_impl_create_engine() (Closed)

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

Description

Fix race condition in bus_ibus_impl_create_engine() If the bus_ibus_impl_create_engine() function is called right after an ibus_component_start() call, the function might fail getting a factory object. To avoid the problem, we should use the busy-wait logic even when ibus_component_is_running() returns true. BUG=http://crosbug.com/7244 TEST=see the bug (comment #4,7,9)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -16 lines) Patch
M bus/ibusimpl.c View 2 chunks +22 lines, -16 lines 0 comments Download

Messages

Total messages: 2
Yusuke Sato
This is for the master branch of ibus. If this looks good to you, I'll ...
13 years, 6 months ago (2010-10-19 11:11:21 UTC) #1
Peng
13 years, 6 months ago (2010-10-19 11:23:45 UTC) #2
On 2010/10/19 11:11:21, Yusuke Sato wrote:
> This is for the master branch of ibus. If this looks good to you, I'll
> cherry-pick it to the chromeos branch.

LGTM. Thanks.
Sign in to reply to this message.

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