chiark / gitweb /
systemd-bootchart: Repair Entropy Graph
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Sun, 29 Mar 2015 18:46:42 +0000 (20:46 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 30 Mar 2015 07:38:17 +0000 (09:38 +0200)
commitc87664fef45fc1dadc2303675ed357e0dde61db9
tree4a6f538c9a52225eac70d899a9d09eb34f554042
parent58ec01b35c046f5f167763343514c20170bfd2eb
systemd-bootchart: Repair Entropy Graph

Entropy Graph code doesn't handle the error condition if open() of /proc entry
fails. Moreover, the file is only opened once and only first sample will contain
the correct value because the return value of pread() is also not handled
properly and file is not re-opened. Fix both problems.
src/bootchart/store.c