- Removed SCStart/EndBuffering as far as possible and fixed an issue with
the capture command in that it not put resluts into the Tcl interpreter. This broke scriptcontext scripts in complicated situations. - Resolved some issues with the TAS calculation and negative scattering sense. - Fixed a bug which did not reset the state to idle after checking reachability in confvirtualmot.c SKIPPED: psi/autowin.c psi/eigera2.c psi/jvlprot.c psi/makefile_linux psi/sinqhttpopt.c psi/tasscan.c
This commit is contained in:
13
sicspoll.c
13
sicspoll.c
@ -211,6 +211,7 @@ int SICSPollWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int status, iVal;
|
||||
char buffer[512];
|
||||
pDynString txt = NULL;
|
||||
SConnection *dummy = NULL;
|
||||
|
||||
assert(self != NULL);
|
||||
if (argc < 2) {
|
||||
@ -320,11 +321,17 @@ int SICSPollWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
return 1;
|
||||
}
|
||||
} else if (strcmp(argv[1], "list") == 0) {
|
||||
SCStartBuffering(pCon);
|
||||
printPollList(self, pCon);
|
||||
txt = SCEndBuffering(pCon);
|
||||
dummy = SCCreateDummyConnection(pSics);
|
||||
if(dummy == NULL){
|
||||
SCWrite(pCon,"ERROR: out of memory listing polling data",eError);
|
||||
return 0;
|
||||
}
|
||||
SCStartBuffering(dummy);
|
||||
printPollList(self, dummy);
|
||||
txt = SCEndBuffering(dummy);
|
||||
if (txt != NULL) {
|
||||
SCWrite(pCon, GetCharArray(txt), eValue);
|
||||
SCDeleteConnection(dummy);
|
||||
}
|
||||
return 1;
|
||||
} else if (strcmp(argv[1], "poll") == 0) {
|
||||
|
Reference in New Issue
Block a user