chiark / gitweb /
bootchart: clean up control flow logic
authorDaniel Mack <daniel@zonque.org>
Thu, 2 Apr 2015 11:43:18 +0000 (13:43 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 3 Apr 2015 13:29:18 +0000 (15:29 +0200)
Don't blindly exit() from random functions, but return a proper error
and upchain error conditions.

squash! bootchart: clean up control flow logic

When pread() returns "0", it's a read failure, so don't make the caller think
log_sample() was successful, return meaningful error code instead of 0.


No differences found