[PATCH]: iostat: prevent endless loop
Marek Polacek
mmpolacek at gmail.com
Thu Aug 12 11:25:10 UTC 2010
Here's patch which prevents endless loop in main(), when there are no
additional parameters specified. Now we have:
if (count > 0) {
if (--count == 0)
break;
}
but when count is 0, we never get to that break, so we end up looping...
iostat.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Thanks,
Marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iostat_prevent_endless.patch
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100812/83d60dbc/attachment-0001.bin>
More information about the busybox
mailing list