From 39041bc6c4c639ffbeb1031ad81f80745a34fda0 Mon Sep 17 00:00:00 2001 From: Charlie Negri <89246953+charlienegri@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:30:50 +0200 Subject: [PATCH] allow empty logfile with the previous code, if a logfile is empty the clients complains with `Failed to fetch file from logserver [server name]@[port] Error: The remote host closed the connection` the added syswrite makes the client happy --- tools/ecflow_logsvr.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ecflow_logsvr.pl b/tools/ecflow_logsvr.pl index f913d3055..7117e37f0 100755 --- a/tools/ecflow_logsvr.pl +++ b/tools/ecflow_logsvr.pl @@ -147,7 +147,7 @@ sub do_get { { syswrite($client,$buf,$size); } - + syswrite($client,"end of output"); close(IN); }