]> git.proxmox.com Git - pve-installer.git/commit
sys: wait a second after sending TERM signal before going for KILL
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 14:47:38 +0000 (15:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 14:49:42 +0000 (15:49 +0100)
commitc8b7a3d36e1d2edec68aa9007cc482eceb7a6f1c
treec8c7f4f4f70d7d78840d24b6fc26d2911a366358
parent8a1a7187ae80ebee90543a161d5814d6ea59d29a
sys: wait a second after sending TERM signal before going for KILL

Graceful process termination can need a bit of time, so wait one
second between sending the (catchable) TERM signal and the
(uncatchable) KILL one.

Makes the code shorter as a side benefit.

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