parlib: Set line buffering for stdout
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 24 Apr 2017 23:50:21 +0000 (19:50 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commitd2667a247248fd9f3fa4dca7ebf64ad2d9ce0961
treea2cd37aaa48a06ae4d00979a8a5f26193cc15bfd
parenta200280533e6e285cfdf1f1ca7b91f7458fb607b
parlib: Set line buffering for stdout

I don't know why this is necessary and not already done by glibc
internally.  I've triggered this a lot with some later patches, but I don't
see why.  I also recall people having problems with this before - Gan and
Ron might have had it back with the early VM work.

Similarly, this might be related to commit c074a35e7f17 ("BB: manually
writes echo's buffer").  Line buffering helped back then, but we also still
didn't get the errno/errstr back (according to the commit message).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/panic.c