]> code.ossystems Code Review - openembedded-core.git/commit
procps: fix that top will quit after cpu offline
authorWenzong Fan <wenzong.fan@windriver.com>
Wed, 19 Jun 2013 03:21:11 +0000 (23:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 08:08:35 +0000 (09:08 +0100)
commitf24aed8d7e41cce277c6eff4ff5ab07b8e39ffff
tree7b30164f260466118a25048cba8eaaabfd36f6d2
parentea31d45def0e9fc4ed1c1ef92756d807ff59fe72
procps: fix that top will quit after cpu offline

top utiliy fails to read /proc/stat after cpu offline, because Cpu_tot
is still the original cpu numbers when calling cpus_refresh, in which
it is trying to read and sscanf Cpu_tot times /proc/stat.

The patch is from procps-3.2.8-2.fc12.src.rpm

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/procps/procps-3.2.8/procps-3.2.7-top-remcpu.patch [new file with mode: 0644]
meta/recipes-extended/procps/procps_3.2.8.bb