From: Ben Pfaff Date: Thu, 7 Jan 2010 17:26:11 +0000 (-0800) Subject: pintos: Make sure to print buffered data at end of input. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2026ecceb129b851bd4f1573f7627a50d51e89b5;hp=2026ecceb129b851bd4f1573f7627a50d51e89b5;p=pintos-anon 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.) ---