Skip to content

Commit

Permalink
Adding fflush call to posix console (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Sep 3, 2024
1 parent 4476828 commit 7a7f116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Os/Posix/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void PosixConsole::writeMessage(const CHAR *message, const FwSizeType size) {
FwSizeType capped_size = (size <= std::numeric_limits<size_t>::max()) ? size : std::numeric_limits<size_t>::max();
if (message != nullptr) {
(void)::fwrite(message, sizeof(CHAR), static_cast<size_t>(capped_size), this->m_handle.m_file_descriptor);
(void)::fflush(this->m_handle.m_file_descriptor);
}
}

Expand Down

0 comments on commit 7a7f116

Please sign in to comment.