mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 18:38:01 +00:00
c29271e168
This reverts commit 55a5c8d8f9
.
In order to accommodate the removal of the
UnixSeqPacket+CloseNotifier change, I updated the controller.rs
to reference platform-specific internal implementations.
On Windows, CloseNotifier is used to detect closed Tubes.
On Linux, we rely on PollContext returning because the socket fd
is hung up.
Some minor adjustmets to the code were made just to allow as
litte duplication as possible.
In the end, very little logic has changed from the original CL,
it's just moved around.
TL;DR:
This fixes the downstream regression by removing its dependency
on the breaking changes to base.
BUG=b:232316549
FIXED=b:232316549
TEST=Crosvm tests
Change-Id: I946d5096f7a312538c3c694950697fab1be7f0ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3661257
Commit-Queue: Michael Hoyle <mikehoyle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
28 lines
No EOL
700 B
TOML
28 lines
No EOL
700 B
TOML
[package]
|
|
name = "metrics"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
kiwi = ["lazy_static", "libc", "serde_json", "sync"]
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
base = { path = "../base" }
|
|
cfg-if = "*"
|
|
lazy_static = { version = "*", optional = true }
|
|
libc = { version = "*", optional = true }
|
|
protobuf = { version = "2.24", features = [ "with-serde" ] }
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = { version = "*", optional = true }
|
|
sync = { path = "../common/sync", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
chrono = { version = "*" }
|
|
winapi = { version = "*" }
|
|
wmi = { version = "^0.9" }
|
|
|
|
|
|
[build-dependencies]
|
|
protoc-rust = "2.24" |