PSA: fork() considered harmful in macOS
At Formal, we love proxies, and we’ve been spending a lot of time writing proxies that don’t just run in containers but also on endpoints. As a result, our Go code has been running more and more on macOS lately. It also has been growing more and more Swift CGo bindings!Upon upgrading to macOS Tahoe 26.5.2, however, some customers were experiencing some bizarre high CPU usage from our endpoint. We grabbed the following profile via sample:Call graph:
2395 Thread_1014362: Main Thread DispatchQueu...
Read more at formal.ai