aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2023-02-23 02:48:09 +1000
committeronefang2023-02-23 02:48:09 +1000
commit769aafaaad11da562983448da42b8c53402ca9a1 (patch)
tree004e83ec27273dd79f1ddd8cb5fc46014ffb5e24 /apt-panopticommon.lua
parentAdd yet another timeout watchdog. (diff)
downloadapt-panopticon-769aafaaad11da562983448da42b8c53402ca9a1.zip
apt-panopticon-769aafaaad11da562983448da42b8c53402ca9a1.tar.gz
apt-panopticon-769aafaaad11da562983448da42b8c53402ca9a1.tar.bz2
apt-panopticon-769aafaaad11da562983448da42b8c53402ca9a1.tar.xz
The -v option for timeout is new, not everyone has it.
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 a2def5a..04a339a 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -547,9 +547,9 @@ APT.exe = function(c)
547 -- 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. 547 -- 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.
548 -- --kill-after means "send KILL after TERM fails. 548 -- --kill-after means "send KILL after TERM fails.
549 if nil == c then 549 if nil == c then
550 self.cmd = 'timeout --kill-after=10.0 --foreground -v 42.0s ' .. self.cmd 550 self.cmd = 'timeout --kill-after=10.0 --foreground 42.0s ' .. self.cmd
551 else 551 else
552 self.cmd = 'timeout --kill-after=10.0 --foreground -v ' .. c .. ' ' .. self.cmd 552 self.cmd = 'timeout --kill-after=10.0 --foreground ' .. c .. ' ' .. self.cmd
553 end 553 end
554 return self 554 return self
555 end 555 end