Go to file
Christoph Heiss 152bbef439 sys: command: factor out kill() + waitpid() from run_command()
This moves the kill() + waitpid() combo into a separate subroutine,
avoiding open-coding that sequence. wait_for_process() also handles
properly unkillable process (e.g. in D-state) and avoids completely
locking up the installer in such cases. See [0].

For the latter case, a timeout exists (with a default of 5 seconds) in
which to wait for the process to exit after sending an optional
TERM/KILL signal.

Also while at it, add a few basic tests for run_command().

[0] https://lists.proxmox.com/pipermail/pve-devel/2024-February/061697.html

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-02-23 14:19:56 +01:00
.cargo tui: build with sources from debian pacakges 2023-06-19 12:19:37 +02:00
banner merge installer into single package 2021-05-25 19:49:39 +02:00
debian bump version to 8.1.7 2023-11-23 11:11:27 +01:00
html restructure html in repo and installed package 2021-05-25 19:49:39 +02:00
Proxmox sys: command: factor out kill() + waitpid() from run_command() 2024-02-23 14:19:56 +01:00
proxmox-installer-common proxinstall, common: remove "off" as zfs checksum option 2024-02-06 14:22:24 +01:00
proxmox-tui-installer tui: preserve autoreboot checkbox state when switching views 2023-11-21 13:11:50 +01:00
test sys: command: factor out kill() + waitpid() from run_command() 2024-02-23 14:19:56 +01:00
.gitignore gitignore: add cd-info.test 2023-07-21 13:45:28 +02:00
Cargo.toml add proxmox-installer-common crate 2023-11-02 20:04:02 +01:00
checktime checktime: output expected and wrong times for better UX 2023-05-19 09:52:31 +02:00
country.pl Fix #1527: Use 'iso-codes' package country naming 2018-09-17 15:07:31 +02:00
fake-start-stop-daemon imported from svn 'pve-installer/pve2' 2011-08-23 07:33:40 +02:00
interfaces drop eth0 from installer interfaces file 2017-03-08 09:09:43 +01:00
Makefile buildsys: handle installing multiple executables to /usr/bin 2024-02-06 15:27:11 +01:00
policy-disable-rc.d Revert "drop unused policy-disable-rc.d" 2020-02-19 16:53:46 +01:00
proxinstall gui: remove trailing spaces and colons 2024-02-23 14:12:57 +01:00
proxmox-low-level-installer low-level: initialize UI backend for 'dump-env' subcommand too 2024-02-23 14:19:56 +01:00
rustfmt.toml tui, common: run rustfmt 2023-11-03 12:52:56 +01:00
spice-vdagent.sh improve spice integration 2020-04-24 15:19:09 +02:00
unconfigured.sh x: disable screen saver via blank time 2023-11-16 17:54:37 +01:00
Xdefaults imported from svn 'pve-installer/pve2' 2011-08-23 07:33:40 +02:00
xinitrc improve spice integration 2020-04-24 15:19:09 +02:00