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:
Craig Small
2015-09-26 08:19:32 +10:00
parent 86b155b83f
commit b5e3c5e835
2 changed files with 93 additions and 91 deletions

View File

@@ -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