ps -q does not show threads with -L option
Starting with release 4.0
, the following changes:
$ ./ps/pscommand -L 4974
PID LWP TTY STAT TIME COMMAND
4974 4974 pts/1 Sl+ 0:00 ./a.out
4974 4975 pts/1 Sl+ 0:00 ./a.out
4974 4976 pts/1 Sl+ 0:00 ./a.out
$ ./ps/pscommand -L -q 4974
PID LWP TTY TIME CMD
4974 4974 pts/1 00:00:00 a.out
Note it used to work:
$ ps -L -q 4974
PID LWP TTY TIME CMD
4974 4974 pts/1 00:00:00 a.out
4974 4975 pts/1 00:00:00 a.out
4974 4976 pts/1 00:00:00 a.out
$ ps --version
ps from procps-ng 3.3.17