未验证 提交 6dfe4809 编写于 作者: O openharmony_ci 提交者: Gitee

!1716 FIX:优化数据丢失问题

Merge pull request !1716 from cheng_jinsong/0119
......@@ -108,6 +108,8 @@ static void BatchSavePersistParamEnd(PERSIST_SAVE_HANDLE handle)
{
int ret;
FILE *fp = (FILE *)handle;
(void)fflush(fp);
(void)fsync(fileno(fp));
(void)fclose(fp);
if (InUpdaterMode() == 0) {
unlink(PARAM_PERSIST_SAVE_PATH);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册