[Toybox] [PATCH] top: make the task/thread count add up.

enh enh at google.com
Sat Feb 16 22:54:32 PST 2019


Linux has more states than we were giving it credit for, which led to
our numbers not adding up. Since the exact details seem to change
between versions, and since having code specific to each kernel version
is unattractive, go with the heuristic that there are relatively fewer
"stopped" states (and they change less frequently), so all unknowns are
"sleeping".
---
 toys/posix/ps.c | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-top-make-the-task-thread-count-add-up.patch
Type: text/x-patch
Size: 2699 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190216/62f535a5/attachment.bin>


More information about the Toybox mailing list