SICS-684 Add 'hmm astop' command to simulated hmm in script validator.

See SICS-638 for justification.
This commit is contained in:
Ferdi Franceschini
2013-10-29 09:16:54 +11:00
parent fa9ba68146
commit 7bb1763da9

View File

@@ -1301,6 +1301,14 @@ int HistAction(SConnection * pCon, SicsInterp * pSics, void *pData,
SCSendOK(pCon); SCSendOK(pCon);
return 1; return 1;
} }
else if (strcmp(argv[1], "astop") == 0) {
if (!SCMatchRights(pCon, usUser)) {
return 0;
}
self->pDriv->Halt(self->pDriv);
SCSendOK(pCon);
return 1;
}
/* pause */ /* pause */
else if (strcmp(argv[1], "pause") == 0) { else if (strcmp(argv[1], "pause") == 0) {
if (!SCMatchRights(pCon, usUser)) { if (!SCMatchRights(pCon, usUser)) {