force exit from readline() function.

Posted by Sasun Hambardzumyan on Stack Overflow See other posts from Stack Overflow or by Sasun Hambardzumyan
Published on 2010-02-26T08:09:13Z Indexed on 2010/05/07 22:58 UTC
Read the original article Hit count: 230

Filed under:
|

I am writing program in c++ which runs GNU readline in separate thread. When main thread is exited I need to finish the thread in which readline() function is called. The readline() function is returned only when standart input came (enter pressed). Is there any way to send input to application or explicitly return from readline function? Thanks in advance.

© Stack Overflow or respective owner

Related posts about readline

Related posts about c++