]> git.proxmox.com Git - pve-common.git/commit
fork_worker: factor out synced worker output mirroring
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Dec 2017 16:00:31 +0000 (17:00 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Dec 2017 12:37:05 +0000 (13:37 +0100)
commit3e2da216007a4f63716c0a1fae179d24816a3752
tree2c39753127fe0fd10d59c1e64c4252a108b40277
parented52a8435a6dcdf77568280679355eba6c5857b6
fork_worker: factor out synced worker output mirroring

When running in sync (CLI environment) we mirror the workers output
to both, STDOUT and th task log file, a similar function as the unix
comand line tool tee provides, thus we borrow its name for the
factored out sub method.

This moves ~60 lines of code out of the big fork_worker sub and makes
it easier to read track what happens there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTEnvironment.pm