]> git.proxmox.com Git - pve-common.git/commit
run fork with timeout: only special case timeout error in list context
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 30 Aug 2023 13:07:52 +0000 (15:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Aug 2023 14:44:40 +0000 (16:44 +0200)
commit41ed4396350713aa592aeb615a84363e2ce9298e
tree0a3e70cb4bea113f245badf570fddee7baba98b3
parenteac8b4b872e4176497e1d9e4aa28d26383287e9f
run fork with timeout: only special case timeout error in list context

run_with_timeout() will treat a timeout error differently when called
in list context and run_fork_with_timeout() should do the same. Ensure
this by calling run_with_timeout() in list context if and only if
run_fork_with_timeout() is called in list context too.

Fixes: a6aa0ae ("run with timeout: return if timeout happened in list context")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/Tools.pm