fix(tools): make server screenshot write to named pipe non-blocking

main
Tsu-ba-me 2 years ago
parent 950a98558f
commit 58d09cb08c
  1. 3
      tools/anvil-get-server-screenshot

@ -184,7 +184,8 @@ if ($server_uuid)
if ($request_host_uuid)
{
my $request_host_ip_address = get_remote_call_requirements({ debug => $debug, host_uuid => $request_host_uuid });
my $remote_shell_call = $anvil->data->{path}{exe}{echo}." '".$encoded_image."' >".$anvil->data->{path}{directories}{tmp}."/".$server_uuid."_screenshot_".$out_file_id;
my $out_file_path = $anvil->data->{path}{directories}{tmp}."/".$server_uuid."_screenshot_".$out_file_id;
my $remote_shell_call = $anvil->data->{path}{exe}{echo}." '".$encoded_image."' 1<>'".$out_file_path."' >'".$out_file_path."'";
$anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => { request_host_ip_address => $request_host_ip_address } });

Loading…
Cancel
Save