]> git.proxmox.com Git - pve-installer.git/commit - proxinstall
add run_in_background
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 10 Nov 2020 14:15:29 +0000 (15:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 10 Dec 2020 19:04:52 +0000 (20:04 +0100)
commit0e631479087597774e9c856297cfe0c9dec38ddf
tree5acc3e2f9f20a697655bf04d18b0404bbafe49b8
parentd92ada4e1d5ce6733ba310d2b304595146d305a8
add run_in_background

certain tasks done during the installer need not block the GUI (e.g. setting
the keymap of the console, to have the correct one set in the shell on vt3)
and take a longer time.

This patch adds a simple run_in_background method, which forks and runs the
provided code in the child. Before exiting the children get reaped.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxinstall