Skip to content

Commit

Permalink
Use new call to get ComponentContext
Browse files Browse the repository at this point in the history
Fuchsia OS is making a change in the serving sequence for component
startup, to avoid a race condition in which clients attempt to connect
to services that are not yet exposed but will be.

This change is needed for a smooth transition to that new API.  The
Fuchsia SDK change has already rolled to Dart.

See: https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=50758
Change-Id: Ib1249dcf771e99f542343328918ae55497ddaf71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145700
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Filip Filmar <fmil@google.com>
  • Loading branch information
filmil authored and commit-bot@chromium.org committed May 4, 2020
1 parent 75c65a4 commit b161b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/platform/utils_fuchsia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int Utils::VSNPrint(char* str, size_t size, const char* format, va_list args) {

sys::ComponentContext* ComponentContext() {
static std::unique_ptr<sys::ComponentContext> context =
sys::ComponentContext::Create();
sys::ComponentContext::CreateAndServeOutgoingDirectory();
return context.get();
}

Expand Down

0 comments on commit b161b52

Please sign in to comment.