pintos: Fix undefined value warning from Perl on read error.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 9 Feb 2016 04:46:18 +0000 (20:46 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 9 Feb 2016 04:46:18 +0000 (20:46 -0800)
commitdfb59a37538f8fd727bae352ac4bf9e37b8ad211
tree348159c78307da12b4d3131d26b25137dcc6509a
parent74a16b2670cf475b3e8cbf5ca6538176034212df
pintos: Fix undefined value warning from Perl on read error.

When sysread encounters an error, it returns undef, which yields a warning
when compared against 0.  This fixes the problem.
src/utils/pintos