]> git.proxmox.com Git - pve-common.git/commit - src/PVE/ProcFSTools.pm
add upid_wait method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Jan 2016 12:15:05 +0000 (13:15 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 27 Jan 2016 15:54:50 +0000 (16:54 +0100)
commitc1073fdc483bad57e0d71999f83b6797f294cf47
tree2d0677fac16d33f4236ae7b0054e6e43e9b0d481
parentebd2b0aca54022f80abfbea0167d1ac2143f4771
add upid_wait method

Waits for a process identified by a UPID to end by busy waiting
and is intended for long running workers.

waitfunc gets called every wait cycle after min $sleep_interval
seconds and can be used for outputting/logging something or timing
out the wait.

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