opnsense-ports/devel/electron32/files/patch-base_linux__util.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

17 lines
537 B
C++

--- base/linux_util.cc.orig 2024-06-18 21:43:17 UTC
+++ base/linux_util.cc
@@ -154,10 +154,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(std::to_string(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) {