提交 5f78ff09 编写于 作者: O openharmony_ci 提交者: Gitee

!482 确保BBOX抓取的故障日志落盘

Merge pull request !482 from pcwlno1/cherry-pick-1627723436
...@@ -78,6 +78,7 @@ int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isA ...@@ -78,6 +78,7 @@ int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isA
totalToWrite -= writeThisTime; totalToWrite -= writeThisTime;
totalWrite += writeThisTime; totalWrite += writeThisTime;
} }
(void)fsync(fd);
(void)close(fd); (void)close(fd);
return (totalWrite == (int)bufSize) ? 0 : -1; return (totalWrite == (int)bufSize) ? 0 : -1;
...@@ -124,4 +125,4 @@ bool IsLogPartReady(void) ...@@ -124,4 +125,4 @@ bool IsLogPartReady(void)
{ {
return TRUE; return TRUE;
} }
#endif #endif
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册