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:
Thomas O'Donnell
2021-01-21 22:59:14 +01:00
committed by GitHub
parent b5fd517972
commit 5cf1c8a7bd
3 changed files with 59 additions and 9 deletions
+1
View File
@@ -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"] }