From 4d9f4d62e416b0080ccd223c553a967e051d4bab Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 27 Dec 2017 11:11:05 +0100 Subject: [PATCH] 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 --- src/PVE/RESTEnvironment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "