Merge pull request #2157

6a23cd07 Add notification on stop (Jethro Grassie)
This commit is contained in:
Riccardo Spagni 2017-07-19 11:52:11 +02:00
commit e050853ed3
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ void rdln::readline_buffer::start()
void rdln::readline_buffer::stop()
{
std::unique_lock<std::mutex> lock(process_mutex);
have_line.notify_all();
if(m_cout_buf == NULL)
return;
std::cout.rdbuf(m_cout_buf);