Busybox echo buffers lines to stdout
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Mar 2015 16:45:23 +0000 (11:45 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Mar 2015 16:45:23 +0000 (11:45 -0500)
commit9a3ce3138e007845efb1afd550ca951f2ccb4e6b
tree52daa12bd1c3b6064509677a4971ca3cb16e905b
parent72fb69c1ff8d5c64cac61d16d797f8821faf8d8f
Busybox echo buffers lines to stdout

In some cases, echo would split a line up into several write calls,
which would lead to incomplete commands sent to the kernel.

Since it's surprisingly non-deterministic (though consistent per boot),
I haven't confirmed this is the fix.  If you have weird failures with
echo, try and get a syscall trace and let me know.

You'll need to rebuild busybox:
$ cd tools/apps/busybox/
$ make

And remake the kernel.
tools/apps/busybox/akaros-patches/1.17.3/0006-echo-linebuffered.patch [new file with mode: 0644]