From f56f613504970212368123b4c4140b8e4edc89ff Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 5 Sep 2025 16:13:01 +1000 Subject: For the timeout command, explicitly set seconds, don't rely on the default. --- apt-panopticommon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-panopticommon.lua') diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index 7961ca4..1507ae9 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua @@ -551,9 +551,9 @@ APT.exe = function(c) -- timeout returns a status of - command status if --preserve-status; "128+9" (actually 137) if --kill-after ends up being done; 124 if it had to TERM; command status if all went well. -- --kill-after means "send KILL after TERM fails. if nil == c then - self.cmd = 'timeout --kill-after=10.0 --foreground 42.0s ' .. self.cmd + self.cmd = 'timeout --kill-after=10.0s --foreground 42.0s ' .. self.cmd else - self.cmd = 'timeout --kill-after=10.0 --foreground ' .. c .. ' ' .. self.cmd + self.cmd = 'timeout --kill-after=10.0s --foreground ' .. c .. ' ' .. self.cmd end return self end -- cgit v1.1