Re: [systemd-devel] [PATCH] systemd-bootchart: Repair Entropy Graph

2015-03-30 Thread Daniel Mack
On 03/29/2015 08:46 PM, Alexander Sverdlin wrote: > 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 > prop

[systemd-devel] [PATCH] systemd-bootchart: Repair Entropy Graph

2015-03-29 Thread Alexander Sverdlin
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/b