Thanks for the report.
Pushed a fix to git, can you verify that it works?

commit 4b032a4d6c4a9e24e66c262d6350e6499d0facb3
Date:   Mon Sep 6 17:38:18 2021 +0200

    chat: hopefully fix infinite spinning on input EOF

    function                                             old     new   delta
    chat_main                                           1295    1303      +8


On Tue, Aug 31, 2021 at 11:01 AM Jörgen Pihlflyckt
<[email protected]> wrote:
>
> Hello
>
> I have a bunch of usb-connected embedded modems, that occasionally disconnect
> from the usb bus more or less spontaneously. When this happens at the same
> time as a chat script is running, chat seems to get confused when the system
> call to poll() returns both POLLHUP and POLLERR together with incoming data.
>
> The net result is, that chat goes into an infinite loop and starts consuming
> 100% cpu. Has anyone else noticed this, or do I just have weird modems?
> -----
> [email protected]
>
>
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to