bin/128842: ps(1) command output includes thread name only when it
is the last field
Ed Maste
emaste at FreeBSD.org
Thu Nov 13 07:30:02 PST 2008
>Number: 128842
>Category: bin
>Synopsis: ps(1) command output includes thread name only when it is the last field
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 13 15:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ed Maste
>Release: FreeBSD 8.0-CURRENT amd64
>Organization:
FreeBSD
>Environment:
System: FreeBSD ref8-amd64.freebsd.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r184542: Sun Nov 2 00:26:55 UTC 2008 peter at ref8-amd64.freebsd.org:/scratch/src/sys/amd64/compile/REF8-AMD64 amd64
>Description:
If the command (comm field) is included in ps output and is the last field,
both the process and thread names are displayed separated by a slash. If
however it is not the last field, only the process name is shown.
[emaste at ref8-amd64 ~]$ ps -axH -o pid,lwp,comm | head
PID LWP COMMAND
0 100000 kernel/swapper
0 100025 kernel/thread taskq
0 100028 kernel/acpi_task_0
[...]
[emaste at ref8-amd64 ~]$ ps -axH -o comm,pid,lwp | head
COMMAND PID LWP
kernel 0 100000
kernel 0 100025
kernel 0 100028
[...]
>How-To-Repeat:
Run ps with comm as a -o flag and not the last column.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list