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

!1738 告警清理

Merge pull request !1738 from 李明康/cherry-pick-1675421359
......@@ -62,8 +62,11 @@ static int DoRebootPanic(int id, const char *name, int argc, const char **argv)
if (panic == NULL) {
return reboot(RB_AUTOBOOT);
}
fwrite((void *)"c", 1, 1, panic);
fclose(panic);
if (fwrite((void *)"c", 1, 1, panic) != 1) {
(void)fclose(panic);
PLUGIN_LOGI("fwrite to panic failed");
}
(void)fclose(panic);
#endif
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册