Skip to content

Commit 96764ff

Browse files
authored
omdb should not crash on SIGPIPE (#9255)
Fixes #8352 in the same way as #5358 fixed `oxlog`.
1 parent 124a672 commit 96764ff

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-tools/omdb/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ratatui.workspace = true
7070
reedline.workspace = true
7171
reqwest.workspace = true
7272
serde.workspace = true
73+
sigpipe.workspace = true
7374
serde_json.workspace = true
7475
sled-agent-client.workspace = true
7576
slog.workspace = true

dev-tools/omdb/src/bin/omdb/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ mod sled_agent;
6060
mod support_bundle;
6161

6262
fn main() -> Result<(), anyhow::Error> {
63+
sigpipe::reset();
6364
oxide_tokio_rt::run(main_impl())
6465
}
6566

0 commit comments

Comments
 (0)