Files
ports/devel/electron41/files/patch-base_linux__util.cc
2026-10-04 04:07:15 +00:00

18 lines
543 B
C++

--- base/linux_util.cc.orig 2026-03-13 16:54:03 UTC
+++ base/linux_util.cc
@@ -159,10 +159,14 @@ bool GetThreadsForProcess(pid_t pid, std::vector<pid_t
}
bool GetThreadsForProcess(pid_t pid, std::vector<pid_t>* tids) {
+#if BUILDFLAG(IS_BSD)
+ return false;
+#else
// 25 > strlen("/proc//task") + strlen(base::NumberToString(INT_MAX)) + 1 = 22
char buf[25];
strings::SafeSPrintf(buf, "/proc/%d/task", pid);
return GetThreadsFromProcessDir(buf, tids);
+#endif
}
bool GetThreadsForCurrentProcess(std::vector<pid_t>* tids) {