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
a74422281f
commit
5a8eb51968
|
@ -645,6 +645,8 @@ flush:
|
||||||
if (m_output.bytes == 0)
|
if (m_output.bytes == 0)
|
||||||
m_output.flush = false;
|
m_output.flush = false;
|
||||||
|
|
||||||
|
m_output.semaphore.unblock();
|
||||||
|
|
||||||
m_lock.unlock();
|
m_lock.unlock();
|
||||||
|
|
||||||
return to_copy;
|
return to_copy;
|
||||||
|
|
Loading…
Reference in New Issue