Skip to content

Commit

Permalink
Timeout delta generation after 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed May 23, 2024
1 parent c8ef843 commit 9216562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ostree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ pub fn generate_delta_async(
repo_path: &Path,
delta: &Delta,
) -> Box<dyn Future<Item = (), Error = OstreeError>> {
let mut cmd = Command::new("flatpak");
let mut cmd = Command::new("timeout");
cmd.arg("3600").arg("flatpak");

unsafe {
cmd.pre_exec(|| {
Expand Down

0 comments on commit 9216562

Please sign in to comment.