htop/linux
Denis Lisov e07fce7014 LinuxProcessList_recurseProcTree: open dirfd first
A process can die between reading the directory listing and opening the
directory FD (if HAVE_OPENAT) or /proc files (otherwise) for reading the
process data. This race would cause LinuxProcessList_recurseProcTree to
remove it from the list immediately, which is unexpected in the
"highlight dying processes" mode and can break the tree structure.
This patch closes this race in the HAVE_OPENAT case by only accessing
the process entry after the directory FD has been opened.
2022-05-05 10:00:34 +02:00
..
CGroupUtils.c Skip system slice name 2022-03-06 19:56:25 +01:00
CGroupUtils.h Extract string writing/buffer handling into some callback 2021-11-28 20:19:10 +01:00
HugePageMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
HugePageMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriority.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
LibSensors.c IWYU update 2021-08-25 09:54:30 +02:00
LibSensors.h IWYU update 2021-08-25 09:54:30 +02:00
LinuxProcess.c Auto-size (normalized) CPU usage columns 2022-03-06 19:56:25 +01:00
LinuxProcess.h Compress cgroup names based on some heuristics 2021-11-28 20:19:10 +01:00
LinuxProcessList.c LinuxProcessList_recurseProcTree: open dirfd first 2022-05-05 10:00:34 +02:00
LinuxProcessList.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
Platform.c Remove stray fprintf left from testing (introduced in 7039abe) 2022-04-26 13:35:35 +02:00
Platform.h Mark ScreenDefaults const 2021-12-17 14:45:15 +01:00
PressureStallMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PressureStallMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ProcessField.h Compress cgroup names based on some heuristics 2021-11-28 20:19:10 +01:00
SELinuxMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SELinuxMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ZramMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
ZramMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00