diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-10-23 12:39:47 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-11-08 07:42:34 +0100 |
| commit | 4ee218a2d262943e362e3e25414852cf8e982dcb (patch) | |
| tree | bfc6e7b895f70595f7d40457018a9759334447d7 /scripts/mkdiff_obj | |
| parent | d549c8be8636dd523358565e573eeba4fc1f928d (diff) | |
| download | busybox-w32-4ee218a2d262943e362e3e25414852cf8e982dcb.tar.gz busybox-w32-4ee218a2d262943e362e3e25414852cf8e982dcb.tar.bz2 busybox-w32-4ee218a2d262943e362e3e25414852cf8e982dcb.zip | |
pgrep/pkill: fix -x to also match comm field
When running `pgrep -x example` against a process `/bin/example --arg`,
BusyBox fails to match, while GNU pgrep succeeds. The reason is that the
comparison is done only against the full argv[0] rather than comm. This
patch changes pgrep -x to also try /proc/[pid]/comm for exact matching.
function old new delta
pgrep_main 681 670 -11
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/mkdiff_obj')
0 files changed, 0 insertions, 0 deletions
