From 9216562fa2d86f5566a506d49456587ec5b88bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Thu, 23 May 2024 08:43:56 +0200 Subject: [PATCH] Timeout delta generation after 1 hour --- src/ostree.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ostree.rs b/src/ostree.rs index ea9d356..668b32f 100644 --- a/src/ostree.rs +++ b/src/ostree.rs @@ -1011,7 +1011,8 @@ pub fn generate_delta_async( repo_path: &Path, delta: &Delta, ) -> Box> { - let mut cmd = Command::new("flatpak"); + let mut cmd = Command::new("timeout"); + cmd.arg("3600").arg("flatpak"); unsafe { cmd.pre_exec(|| {