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
..
2022-03-06 19:56:25 +01:00
2021-08-25 09:54:30 +02:00
2021-08-25 09:54:30 +02:00
2021-12-17 14:45:15 +01:00
2021-05-10 18:40:53 +02:00
2021-02-07 12:41:52 +01:00