[Toybox] Fwd: [PATCH] Show thread names with "ps -T" on Android.
Rob Landley
rob at landley.net
Fri Sep 30 14:43:55 PDT 2016
On 09/29/2016 11:12 AM, enh wrote:
> you'd have been pleased by some of the stuff i've seen on internal
> bugs recently --- all kinds of "fancy" command-line usage with no-one
> [except me!] giving a second thought to "do we actually support
> that?".
>
> did you resolve your spam filter issues?
I hope so. :(
> not sure if you didn't see
> yesterday's ps patch, or if there's a better way to do it?
I got behind on my email during the 3 day drive and am still catching up.
> (i noticed
> as well that the GNU ps docs claim that -123 should work the same as
> 123,
Um, but the comment on the new code hunk says it's undocumented?
Where is this?
> but that doesn't seem to be true in practice,
landley at driftwood:~/toybox/toy3$ ps -24000
PID TTY STAT TIME COMMAND
24000 pts/100 Ss 0:00 bash
landley at driftwood:~/toybox/toy3$ ps 24000
PID TTY STAT TIME COMMAND
24000 pts/100 Ss 0:00 bash
Seems to work?
> and i've never
> heard of anyone actually doing that, so i ignored it. i should
> probably have said so in the checkin comment.)
Wouldn't be the first time I implemented what the docs said should work
even when the gnu implementation didn't. :)
I've never heard of anyone using ps -123 either, but it wouldn't be hard
to implement. Query: -p options are comma separated lists, so in theory
you could go ps 1,2 but when I try it with the gnu version:
landley at driftwood:~/toybox/toy3$ ps
PID TTY TIME CMD
24975 pts/101 00:00:00 bash
25074 pts/101 00:00:00 ps
landley at driftwood:~/toybox/toy3$ ps 24975,25074
error: process ID list syntax error
Sigh. My question is, if I'm removing - from "ps -123" should I also
remove it from "ps -p 1,-2"? It looks like no:
$ ps -p 32226,-32589
error: process ID out of range
Rob
P.S. Can I cc: this back to the list? :)
More information about the Toybox
mailing list