Menu

#13 Fix for infinite loop in ibtest after pressing ^D

Unstable (example)
unread
nobody
None
5
2020-10-30
2020-10-29
tofurky
No

I noticed that when running the 'ibtest' program on Linux, ^D causes the program to enter an infinite loop.

The fix is trivial - just detect EOF on stdin and treat it the same as pressing 'q'.

Please see attached patch (ibtest.patch).

1 Attachments

Discussion

  • Frank Mori Hess

    Frank Mori Hess - 2020-10-30

    I've commited a somewhat more extensive fix that also addresses some other places in ibtest where it does similar things. It is in svn revision 1917, but I haven't tested it. Would you try it and see if it works for you?

     
    • tofurky

      tofurky - 2020-10-30

      I'm not currently in a position to thoroughly test it (I just have an adapter with no devices hooked up yet) but it does at least seem to fix the infinite loop.

      Thanks for the quick response.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.