Fixed an issue where the monitor would not start the next time the application exits normally.

This commit is contained in:
zhangzihao 2021-01-22 10:51:06 +08:00
parent add5b7bb46
commit d4c613e3e6
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_dataBaseStatusOK){
int retval = write(fifo_fd, buffer, strlen(buffer));
if(retval == -1)
{
perror("write error\n");
}
printf("write data ok!\n");
//why???????????????????????????????????????????????????????????????
//why not quit?
@ -183,7 +189,6 @@ void FirstIndex::run(){
perror("write error\n");
}
printf("write data ok!\n");
close(fifo_fd);
FileUtils::_index_status = FINISH_CREATING_INDEX;