[Toybox] ps -T -o name

enh enh at google.com
Wed May 4 13:55:42 PDT 2016


seems like a bug that if you use -o but don't include 'tid', -T becomes a no-op?

ps -A -T | wc -l
ps -A -T -o name | wc -l

should this

  dt = dirtree_read("/proc",
    (TT.bits&(_PS_TID|_PS_TCNT)) ? get_threads : get_ps);

be

  dt = dirtree_read("/proc",
    ((toys.optflags&FLAG_T) || (TT.bits&(_PS_TID|_PS_TCNT))) ?
get_threads : get_ps);

?

-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.



More information about the Toybox mailing list