Kernel: TTY now unblocks semaphore after read
This allows concurrent reads not fully reading the buffer not block indefinately.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user