From: Wolfgang Bumiller Date: Wed, 27 Dec 2017 10:11:05 +0000 (+0100) Subject: fork_worker: use correct handle type for POSIX::write X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=4d9f4d62e416b0080ccd223c553a967e051d4bab 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 Fixes: ed52a8435a6d ("fork_worker: use separate pipe for status messages") Reviewed-by: Thomas Lamprecht --- diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm index 91de875..871f12b 100644 --- a/src/PVE/RESTEnvironment.pm +++ b/src/PVE/RESTEnvironment.pm @@ -525,7 +525,7 @@ sub fork_worker { if !open(STDIN, "