]> git.proxmox.com Git - pve-common.git/commit
fork_worker: use correct handle type for POSIX::write
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 27 Dec 2017 10:11:05 +0000 (11:11 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jan 2018 13:12:34 +0000 (14:12 +0100)
commit4d9f4d62e416b0080ccd223c553a967e051d4bab
tree3b5be704abf828b6f41ace267237ba6043556284
parent918140af72a20b738a13810a1a2acc783fc6c8b5
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: ed52a8435a6d ("fork_worker: use separate pipe for status messages")
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTEnvironment.pm