mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 23:08:20 +00:00
fork_worker: use correct handle type for POSIX::write
$resfh can be a pipe from POSIX::pipe() or the upid output
handle, which is an IO::File, so we need to take its
fileno().
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: ed52a8435a
("fork_worker: use separate pipe for status messages")
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
918140af72
commit
4d9f4d62e4
@ -525,7 +525,7 @@ sub fork_worker {
|
||||
if !open(STDIN, "</dev/null");
|
||||
|
||||
$outfh = PVE::Tools::upid_open($upid);
|
||||
$resfh = $outfh;
|
||||
$resfh = fileno($outfh);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user