[PATCH] wc hang

Dan Fandrich dan at coneharvesters.com
Tue Nov 17 18:50:40 UTC 2009


I found that wc was always hanging when run (e.g.
./busybox_unstripped wc </dev/null).  It turns out that the new isprint
replacement macro returns TRUE for isprint(EOF), so the read loop would
never end. Moving the check for EOF first fixes it.

>>> Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fixed-a-hang-in-the-wc-applet.patch
Type: text/x-patch
Size: 1365 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091117/be4102cb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 288 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091117/be4102cb/attachment.pgp>


More information about the busybox mailing list