[Bug 262062] pgrep sshd do not get correct result

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 20 Feb 2022 12:20:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262062

            Bug ID: 262062
           Summary: pgrep sshd do not get correct result
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: 345238174@qq.com

On 13.0R pgrep sshd get nothing while I have sshd service running:

root@fb4port:~ # pgrep sshd
root@fb4port:~ # ps auxwww | grep sshd
root   10679   0.0  0.0   20952    1368  -  Is    7Feb22     0:00.02
/usr/sbin/sshd
root   79855   0.0  0.1   21388    5964  -  Is   15:26       0:00.02 sshd: xxxx
[priv] (sshd)
xxxx   80913   0.0  0.1   21392    6028  -  S    15:26       0:00.23 sshd:
xxxx@pts/2,pts/8 (sshd)
root    5228   0.0  0.0   12868    2092  2  S+   20:15       0:00.00 grep sshd

tested on amd64 and arm v7,get the same result.

12.2R ruturn OK.

-- 
You are receiving this mail because:
You are the assignee for the bug.