certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/RTIA FederationManagement.cc


From: certi-cvs
Subject: [certi-cvs] certi/RTIA FederationManagement.cc
Date: Mon, 28 Apr 2008 14:51:33 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     ROUSSELOT <rousse>      08/04/28 14:51:32

Modified files:
        RTIA           : FederationManagement.cc 

Log message:
        fast temporary correction of BUG #23019 (don't remove my fed file 
please !)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/FederationManagement.cc?cvsroot=certi&r1=3.55&r2=3.56

Patches:
Index: FederationManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/FederationManagement.cc,v
retrieving revision 3.55
retrieving revision 3.56
diff -u -b -r3.55 -r3.56
--- FederationManagement.cc     27 Apr 2008 08:37:46 -0000      3.55
+++ FederationManagement.cc     28 Apr 2008 14:51:32 -0000      3.56
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: FederationManagement.cc,v 3.55 2008/04/27 08:37:46 erk Exp $
+// $Id: FederationManagement.cc,v 3.56 2008/04/28 14:51:32 rousse Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -236,10 +236,19 @@
                {
                if ( _FEDid[0] != '\0' )
                    {
+                   // If RTIA end (abort ?) before join don't remove file if 
not temporary
+                   // temporary file name begins with _RT ( yes, but...)
+                   if ( _FEDid[0] == '_' || _FEDid[1] == 'R' || _FEDid[2] == 
'T')
+                      {
                    std::cout<<"Removing temporary file "<<_FEDid<<" on destroy 
federation."<<std::endl;
                    std::remove(_FEDid);
                    _FEDid[0] = '\0' ;
                    }
+                   else
+                      {
+                      std::cout<<"** W ** I don't remove file 
"<<_FEDid<<std::endl;
+                      }                   
+                   }
                }
             }
         else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]