]> git.proxmox.com Git - pve-installer.git/commit
sys: command: handle EINTR in run_command()
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 13 Feb 2024 15:14:00 +0000 (16:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 13:19:56 +0000 (14:19 +0100)
commit7a95f3873fc9422c5266b8fc3dfa7ef85abee2e3
tree3c6b36d15d0cff2855ecc1f341c2bd24503424ad
parent152bbef439c024207df63600d34da35b79f1ae5c
sys: command: handle EINTR in run_command()

Previously, the I/O loop would continue endlessly until the subprocess
exited.
This explicit handling allows run_command() to be used with e.g.
alarm().

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Proxmox/Sys/Command.pm
test/run-command.pl