Re: Some questions about the use of readline()

2019-09-22 Thread Chet Ramey
On 9/21/19 11:23 AM, Aust zhu wrote: > Hello! > I am having some problems with readline(). When calling the readline() > function it is blocked. I want to set a timeout for the readline function > to return. You don't post any code, but I assume you're using a signal handler for SIGALRM. >

Some questions about the use of readline()

2019-09-21 Thread Aust zhu
Hello! I am having some problems with readline(). When calling the readline() function it is blocked. I want to set a timeout for the readline function to return. I tried setting rl_done=1, and fprintf(rl_instream,"\r\n"); fflush(rl_instream); can't make the readline() function return.