Another Keyphrase not detected and timeout
Run applications under pseudo-terminal (PTY) sessions
Brought to you by:
mezantrop
In watch4str the keyphrase is not detected if a read() return data in small chunks (e.g. due to high system load) and those chuncks are less than the lengths of the keyphrase. In this case memmove(buf,buf+cc-largv,largv) will move data from before the begining of buf overwriting the piecies of keyphrase. No detection is possible in this case and a fail with timeout happen
Thank you very much for interest to empty and debugging. I hope to fix the issue applying the patch from #6 which changes watch4str() behavior.