pidof: check cmd if space in argv0
A difference in behaviour between the sysvinit and procps pidof
was that the procps one would sometimes not find process that
the sysvinit one did.
The difference is that if a space is found in argv[0] then sysvinit
would look at cmd for a match. This isn't perfect and more of a
best guess but does often work.
procps pidof now follows the same "standard". The most obvious
difference is with kde based processes and incoming ssh connections
with sshd.
References:
Commit 3f5b75035e
GitLab issue #4
https://gitlab.com/procps-ng/procps/issues/4
https://github.com/limingth/sysvinit/blob/master/sysvinit-2.88dsf/src/killall5.c#L800
This commit is contained in:
parent
d916d5db86
commit
7fdab1fcc8
1
NEWS
1
NEWS
@ -4,6 +4,7 @@ procps-ng-NEXT
|
||||
* ps: display control group name with -o cgname
|
||||
* ps: Fallback to attr/current for context Debian #786956
|
||||
* tests: Conditionally add prctl Debian #816237
|
||||
* pidof: check cmd if space in argv0. GitLab #4
|
||||
|
||||
procps-ng-3.3.11
|
||||
----------------
|
||||
|
Loading…
Reference in New Issue
Block a user