Repository navigation
needs-restarting: Report each process started before a dependency update - #3097
LUX-ETVERITAS wants to merge 2 commits into
Conversation
Read field 22 of /proc/<pid>/stat and convert its clock ticks using the kernel boot time. The old parser read field 23 (virtual memory size), which made comparisons with RPM install times unreliable. Keep all PIDs for each executable and compare their individual start times with the latest install time in the package's dependency tree. Cover the start-time field in a regression test and document the process option in the DNF 4 migration guide. Fixes rpm-software-management#2963
PR Summary by Qodoneeds-restarting: Report each process started before a dependency update
AI Description
Merge Risk
|
Match the elapsed milliseconds reported by curl on connection failure. The elapsed time varies even for connections to localhost. Drain the rest of each RPM payload after cpio reads its trailer so rpm2cpio can finish under pipefail. Keep extraction errors fatal.
dnf5 needs-restarting -pcould miss a process after an RPM dependency was upgraded. It read the virtual memory size from/proc/<pid>/statas the start time and kept only one PID per executable.Read the start time from field 22, relative to kernel boot, and compare every instance of the executable with the latest install time in its package dependency tree. Skip processes whose stat record can no longer be read. The migration guide now describes the
-poption.Verification
needs-restarting -p --jsonagainst an isolated RPM database with two instances started before a dependency upgrade and one after it. The Fedora 45 package (5.4.8.0) reported no processes. The patched command reported both older PIDs and excluded the newer PID.Fixes #2963