aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2025-09-05 16:13:01 +1000
committeronefang2025-09-05 16:13:01 +1000
commitf56f613504970212368123b4c4140b8e4edc89ff (patch)
treef38cda3977a00c7c8df9c29ea94bde7d35d08c3a /apt-panopticommon.lua
parentChange the timeout values. (diff)
downloadapt-panopticon-f56f613504970212368123b4c4140b8e4edc89ff.zip
apt-panopticon-f56f613504970212368123b4c4140b8e4edc89ff.tar.gz
apt-panopticon-f56f613504970212368123b4c4140b8e4edc89ff.tar.bz2
apt-panopticon-f56f613504970212368123b4c4140b8e4edc89ff.tar.xz
For the timeout command, explicitly set seconds, don't rely on the default.
Diffstat (limited to 'apt-panopticommon.lua')
-rw-r--r--apt-panopticommon.lua4
1 files changed, 2 insertions, 2 deletions
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)
551 -- 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. 551 -- 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.
552 -- --kill-after means "send KILL after TERM fails. 552 -- --kill-after means "send KILL after TERM fails.
553 if nil == c then 553 if nil == c then
554 self.cmd = 'timeout --kill-after=10.0 --foreground 42.0s ' .. self.cmd 554 self.cmd = 'timeout --kill-after=10.0s --foreground 42.0s ' .. self.cmd
555 else 555 else
556 self.cmd = 'timeout --kill-after=10.0 --foreground ' .. c .. ' ' .. self.cmd 556 self.cmd = 'timeout --kill-after=10.0s --foreground ' .. c .. ' ' .. self.cmd
557 end 557 end
558 return self 558 return self
559 end 559 end