- Various little fixes to the TAS software

- Added a sync command for synchronizing a simulation server with the
  master server.
This commit is contained in:
cvs
2001-03-16 16:09:33 +00:00
parent 5be8359212
commit bae18e8686
24 changed files with 494 additions and 78 deletions

View File

@ -304,25 +304,28 @@
TaskerDelete(&self->pTasker);
/* save status */
strcpy(pBueffel,"Backup ");
pText = IFindOption(pSICSOptions,"statusfile");
if(pText)
{
strcat(pBueffel,pText);
}
else
{
strcat(pBueffel,DEFAULTSTATUSFILE);
}
pCon = SCCreateDummyConnection(self->pSics);
if(pCon)
{
InterpExecute(self->pSics,pCon,pBueffel);
SCDeleteConnection(pCon);
}
else
{
printf("ERROR: Cannot allocate dummy connection, status NOT saved");
if(!self->simMode)
{
strcpy(pBueffel,"Backup ");
pText = IFindOption(pSICSOptions,"statusfile");
if(pText)
{
strcat(pBueffel,pText);
}
else
{
strcat(pBueffel,DEFAULTSTATUSFILE);
}
pCon = SCCreateDummyConnection(self->pSics);
if(pCon)
{
InterpExecute(self->pSics,pCon,pBueffel);
SCDeleteConnection(pCon);
}
else
{
printf("ERROR: Cannot allocate dummy connection, status NOT saved");
}
}
/* close redirection file if present */