Skip to content

Commit cbc5f29

Browse files
committed
Switch to exit code 32 for timeouts
No special meaning here, just a random non-reserved exit-code. Signed-off-by: Tim Buchwaldt <[email protected]>
1 parent 517f09d commit cbc5f29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core-dump-composer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn main() -> Result<(), anyhow::Error> {
3737
Ok(inner_result) => inner_result,
3838
Err(_error) => {
3939
error!("Timeout error during coredump processing.");
40-
process::exit(1);
40+
process::exit(32);
4141
}
4242
}
4343
}

core-dump-composer/tests/timeout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ fn timeout_scenario() -> Result<(), std::io::Error> {
6666
.expect("Couldn't execute");
6767

6868
// FIXME: It would be nice to check the log output here.
69-
assert_eq!(1, *&cdc.status.code().unwrap());
69+
assert_eq!(32, *&cdc.status.code().unwrap());
7070
Ok(())
7171
}

0 commit comments

Comments
 (0)