pgrep: Use new library API
Change pgrep to use new library API. Threads now use their own name instead of parent process. Updated man page to make note of it.
This commit is contained in:
5
pgrep.1
5
pgrep.1
@@ -2,7 +2,7 @@
|
||||
.\" Licensed under version 2 of the GNU General Public License.
|
||||
.\" Copyright 2000 Kjetil Torgrim Homme
|
||||
.\"
|
||||
.TH PGREP "1" "March 2015" "procps-ng" "User Commands"
|
||||
.TH PGREP "1" "September 2015" "procps-ng" "User Commands"
|
||||
.SH NAME
|
||||
pgrep, pkill \- look up or signal processes based on name and other attributes
|
||||
.SH SYNOPSIS
|
||||
@@ -211,7 +211,8 @@ Fatal error: out of memory etc.
|
||||
.SH NOTES
|
||||
The process name used for matching is limited to the 15 characters present in
|
||||
the output of /proc/\fIpid\fP/stat. Use the \-f option to match against the
|
||||
complete command line, /proc/\fIpid\fP/cmdline.
|
||||
complete command line, /proc/\fIpid\fP/cmdline. Threads may not have the
|
||||
same process name as the parent process but will have the same command line.
|
||||
.PP
|
||||
The running
|
||||
.B pgrep
|
||||
|
Reference in New Issue
Block a user