Skip to contentSkip to conversation

conga/ricci/modules/cluster ClusterConf.cpp

Cluster-devel [email protected] 1 participant 1 message Dec 10, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-12-10 18:58:46

Modified files:
ricci/modules/cluster: ClusterConf.cpp

Log message:
close the output fd to make sure the data is flushed to disk before attempting to run ccs_tool

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterConf.cpp.diff?cvsroot=cluster&r1=1.8&r2=1.9

ricci/modules/cluster/ClusterConf.cpp +1 -0
@@ -85,6 +85,7 @@
   fstream fs(tmp_path.c_str(), 
 	     ios_base::out | ios_base::trunc);
   fs << generateXML(xml);
+  fs.close();
   
   // propagate/move to proper place
   if (propagate) {