Fix bug 424: doing full_read breaks things like cat which should return a
authorRob Landley <rob@landley.net>
Fri, 4 Nov 2005 01:54:15 +0000 (01:54 -0000)
committerRob Landley <rob@landley.net>
Fri, 4 Nov 2005 01:54:15 +0000 (01:54 -0000)
commit3fc4ad1478e1c170d5a939104d5278ac90ca9e6f
treed43c3f1c32aa512a2bb44f22f81fe6b9502c82ff
parent21ccbb6c0e80ca8374b7868a4d9dbc61a87f6297
Fix bug 424: doing full_read breaks things like cat which should return a
chunk of data when they get it and not block until they've buffered 4k.

The use case was cat /proc/psaux, but you can also reproduce this by
running non-busybox cat by itself and typing things at the command line.
Then run busybox cat.  Notice how cat is _supposed_ to echo each line back
to us as we hit enter?
libbb/copyfd.c