X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FPVE%2FRESTEnvironment.pm;fp=src%2FPVE%2FRESTEnvironment.pm;h=0ad6dbaefc28c96067cae96901ebb845be570c9c;hb=95109cc44eb72e0b1b1a66b800a3f3cb99980eea;hp=bab4a2e1843fa763dbeeb0a76ccd973590f1725b;hpb=5cccb0f2001094306a4e0a666dfe28ee02ee2a50;p=pve-common.git diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm index bab4a2e..0ad6dba 100644 --- a/src/PVE/RESTEnvironment.pm +++ b/src/PVE/RESTEnvironment.pm @@ -482,12 +482,8 @@ sub fork_worker { } # sync with parent (signal that we are ready) - if ($sync) { - print "$upid\n"; - } else { - POSIX::write($psync[1], $upid, length ($upid)); - POSIX::close($psync[1]); - } + POSIX::write($psync[1], $upid, length ($upid)); + POSIX::close($psync[1]) if !$sync; # don't need output pipe if async my $readbuf = ''; # sync with parent (wait until parent is ready)