mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
perf(utils): Add timeout to utils::exec_cmd (#2171)
* perf(utils): Add timeout to `utils::exec_cmd` This adds a timeout to any command executed using the `utils::exec_cmd`. The initial time limit is hard coded to 500ms but if required we can make this configurable. Have also switched the tests to be a bit more granular on which systems they are ignored. * Terminate the processes if they timeout
This commit is contained in:
@@ -64,6 +64,7 @@ indexmap = "1.6.1"
|
||||
notify-rust = { version = "4.2.2", optional = true }
|
||||
semver = "0.11.0"
|
||||
which = "4.0.2"
|
||||
process_control = { version = "3.0.0", features = ["crossbeam-channel"] }
|
||||
|
||||
# Optional/http:
|
||||
attohttpc = { version = "0.16.1", optional = true, default-features = false, features = ["tls", "form"] }
|
||||
|
||||
Reference in New Issue
Block a user