!642 解决release1.0.1分支内核关闭中断后在写BUFF满了后卡住问题

Merge pull request !642 from wanghao-free/OpenHarmony_1.0.1_release
This commit is contained in:
openharmony_ci 2021-09-30 01:56:11 +00:00 committed by Gitee
commit 5b44332cff
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ STATIC VOID ConsoleOutput(const CHAR *str, UINT32 len)
for (;;) {
cnt = write(STDOUT_FILENO, str + writen, (size_t)toWrite);
if ((cnt < 0) || (toWrite == cnt)) {
if ((cnt < 0) || ((cnt == 0) && OS_INT_ACTIVE) || (toWrite == cnt)) {
break;
}
writen += cnt;