Merge pull request #100 from MouseZhangZh/0121-dev-inzpf

Fixed an issue where the monitor would not start the next time the ap…
This commit is contained in:
iaom 2021-01-22 10:55:27 +08:00 committed by GitHub
commit 1e1244b8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -77,6 +77,12 @@ void FirstIndex::run(){
if (this->bool_dataBaseExist){ if (this->bool_dataBaseExist){
if (this->bool_dataBaseStatusOK){ if (this->bool_dataBaseStatusOK){
int retval = write(fifo_fd, buffer, strlen(buffer));
if(retval == -1)
{
perror("write error\n");
}
printf("write data ok!\n");
//why??????????????????????????????????????????????????????????????? //why???????????????????????????????????????????????????????????????
//why not quit? //why not quit?
@ -183,7 +189,6 @@ void FirstIndex::run(){
perror("write error\n"); perror("write error\n");
} }
printf("write data ok!\n"); printf("write data ok!\n");
close(fifo_fd);
FileUtils::_index_status = FINISH_CREATING_INDEX; FileUtils::_index_status = FINISH_CREATING_INDEX;