From ce31d94646b25d06f21f6aebb2dbba5ca420489a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 17 Sep 2015 17:14:52 +0100 Subject: [PATCH] ms-queuedaemon: report-plan: Use rename-into-place for data-*.final.pl This means that data-projection.final.pl is never a half-written file. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- ms-queuedaemon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 98cf5c1..1a31284 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -294,7 +294,9 @@ proc report-plan {w wo} { } emsg]} { log "INTERNAL ERROR showing $w html: $emsg" } else { - file copy -force data-$w.pl data-$wo.final.pl + set out data-$wo.final.pl + file copy -force data-$w.pl $out.new + file rename -force $out.new $out log "$w report-plan OK" } } -- 2.39.5