[Bug 254986] w: proc_compare() call is no-op since 1997
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Apr 11 22:55:33 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254986
Bug ID: 254986
Summary: w: proc_compare() call is no-op since 1997
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: yuripv at FreeBSD.org
https://cgit.freebsd.org/src/commit/?id=1bb32253c5cda8ca149df65ef4adae4d7165357a
turned proc_compare() into no-op by only calling it with one of the arguments
being NULL, so that the other argument always "wins" and is considered the
"most interesting" process, and we never call proc_compare() again because of
the NULL check.
I had review D25398 (abandoned) for this, but I'm simply not sure if removing
proc_compare() is correct way to handle this instead of fixing it properly, so
I'm filing PR in case anyone else wants to take care of it.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list