|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST 1/4] ms-queuedaemon: report-plan: Use rename-into-place for data-*.final.pl
From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
This means that data-projection.final.pl is never a half-written file.
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
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.5.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |