Date: Thu, 13 Nov 2008 15:27:35 GMT From: Ed Maste <emaste@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/128842: ps(1) command output includes thread name only when it is the last field Message-ID: <200811131527.mADFRZt0044509@ref8-amd64.freebsd.org> Resent-Message-ID: <200811131530.mADFU2EO024480@freefall.freebsd.org>
index | next in thread | raw e-mail
>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@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@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@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:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811131527.mADFRZt0044509>
