pintos: Make sure to print buffered data at end of input.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 7 Jan 2010 17:26:11 +0000 (09:26 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 26 Jan 2010 17:13:02 +0000 (09:13 -0800)
commit94b11a65805343eb3a4679f695a4f41cae69559e
tree4a00f30adf53c514bb23ef7ff0f884e919aaded4
parent22d909f9b24d2a1337d6d858e7a0bc02b87aff50
pintos: Make sure to print buffered data at end of input.

Here, $buf might have some data in it that has not yet been printed, but
we were discarding it (and trying to read more) without printing it.

(In Perl, "do" ensures that the inner block runs at least once; without
"do" the condition is evaluated first.)
src/utils/pintos