PSI sics-cvs-psi-2006
This commit is contained in:
15
commandlog.c
15
commandlog.c
@@ -27,8 +27,6 @@
|
||||
|
||||
/* in conman.c */
|
||||
int TelnetWrite(mkChannel *pSock, char *pText);
|
||||
|
||||
|
||||
/*-------------------- the command log file pointer ---------------------*/
|
||||
static FILE *fd = NULL;
|
||||
static FILE *fauto = NULL;
|
||||
@@ -82,9 +80,11 @@
|
||||
}
|
||||
|
||||
/* suppress TRANSACTIONFINISHED as well in order to make the WWW
|
||||
commandlog work
|
||||
commandlog work and TRANSACTIONSTART in order to make the logfiles
|
||||
shorter
|
||||
*/
|
||||
if(strstr(pText,"TRANSACTIONFINISHED") != NULL)
|
||||
if(strstr(pText,"TRANSACTIONFINISHED") != NULL ||
|
||||
strstr(pText,"TRANSACTIONSTART") != NULL)
|
||||
{
|
||||
if(pCopy != NULL){
|
||||
free(pCopy);
|
||||
@@ -122,6 +122,13 @@
|
||||
fprintf(fauto,"%s %s\n",prompt, pText);
|
||||
}
|
||||
}
|
||||
|
||||
/* to all listening sockets. The check is necessary to resolve a shutdown problem */
|
||||
if(pServ->pTasker != NULL)
|
||||
{
|
||||
TaskSignal(pServ->pTasker,COMLOG,pText);
|
||||
}
|
||||
|
||||
/* tail buffer */
|
||||
if(pTail != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user