Kernel: TTY now unblocks semaphore after read

This allows concurrent reads not fully reading the buffer not block
indefinately.
This commit is contained in:
Bananymous 2023-07-06 21:32:34 +03:00
parent f1bd26fb92
commit af30d537da
1 changed files with 2 additions and 0 deletions

View File

@ -645,6 +645,8 @@ flush:
if (m_output.bytes == 0)
m_output.flush = false;
m_output.semaphore.unblock();
m_lock.unlock();
return to_copy;