mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 02:20:33 -04:00
Security: https://vuxml.freebsd.org/freebsd/5c777f88-40ff-4e1e-884b-ad63dfb9bb15.html Security: https://vuxml.freebsd.org/freebsd/9c91e1f8-f255-4b57-babe-2e385558f1dc.html
20 lines
677 B
C++
20 lines
677 B
C++
--- base/process/internal_linux.h.orig 2025-07-02 06:08:04 UTC
|
|
+++ base/process/internal_linux.h
|
|
@@ -146,6 +146,9 @@ TimeDelta ClockTicksToTimeDelta(int64_t clock_ticks);
|
|
// arguments to the lambda.
|
|
template <typename Lambda>
|
|
void ForEachProcessTask(base::ProcessHandle process, Lambda&& lambda) {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ return;
|
|
+#else
|
|
// Iterate through the different threads tracked in /proc/<pid>/task.
|
|
FilePath fd_path = GetProcPidDir(process).Append("task");
|
|
|
|
@@ -169,6 +172,7 @@ void ForEachProcessTask(base::ProcessHandle process, L
|
|
FilePath task_path = fd_path.Append(tid_str);
|
|
lambda(tid, task_path);
|
|
}
|
|
+#endif
|
|
}
|
|
|
|
} // namespace internal
|