From 794e511e8e3e1deb7121eac90e36247ebeed329a Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 28 Mar 2020 06:58:32 +0000 Subject: check that a line handler hasn't changed whether we need to keep processing lines --- libidc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libidc.c b/libidc.c index 00cc7c2..01013a7 100644 --- a/libidc.c +++ b/libidc.c @@ -254,6 +254,10 @@ int select_on_everything() { // if(hack == 2) {*t='\r'; t++;} // *t='\n'; //} + if(idc.fds[i].read_lines_for_us == 0) { //this /could/ be changed by a line handler setting this flag + //we need to bail out of the loop that is getting lines from the buffer + break; + } } }//end of looping over each line in backlog }//end of the loop over every select()d fd -- cgit v1.2.3