]> git.proxmox.com Git - pve-installer.git/commit
sys/command: double wait frequency and send SIGKILL once after 0.5s
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 19:40:14 +0000 (20:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 19:46:59 +0000 (20:46 +0100)
commitca1323458de7e1da9ff810defe7bffbc043d16e7
tree7956ff7308f93b5530b9f2f1ea7af2e39470cd89
parent573457a7c5825c5a6f7baafb3f8fdf1847b00020
sys/command: double wait frequency and send SIGKILL once after 0.5s

100 ms is quite plenty, while we would be better of using a event
based wait, i.e., dropping the WNOHANG, that would also mean handling
the time out via alarm, EINTR checking and quite a bit other stuff
making this more convoluted, so for now just go faster..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Sys/Command.pm