forked from Bananymous/banan-os
Kernel: TTY now unblocks semaphore after read
This allows concurrent reads not fully reading the buffer not block indefinately.
This commit is contained in:
parent
f1bd26fb92
commit
af30d537da
|
@ -645,6 +645,8 @@ flush:
|
|||
if (m_output.bytes == 0)
|
||||
m_output.flush = false;
|
||||
|
||||
m_output.semaphore.unblock();
|
||||
|
||||
m_lock.unlock();
|
||||
|
||||
return to_copy;
|
||||
|
|
Loading…
Reference in New Issue