<div>Hi. All</div><div> </div><div>I found an issue of telnetd that it loops infinitely when client disconnected abnormally on working.</div><div>like client is killed by outside.</div><div> </div><div>On embedded system, this issue make that cpu occupation goes high.</div><div> </div><div>In this case : </div><div>select() returns 1, means socket fd has something changes.</div><div>but, read()/write() after select() gets an error because client already disconnected.</div><div> </div><div>attached patch help prevent this issue.</div><div>plz, check.</div><div> </div><div> </div>