2 ms·
I don't know about macOS, but they also did this on OpenBSD. The reason is a recent security addition in OpenBSD, where they made it illegal (as in: violate it,
by patrakov 5y ago
I don't know about macOS, but they also did this on OpenBSD. The reason is a recent security addition in OpenBSD, where they made it illegal (as in: violate it, and the process will be killed) to issue syscalls to the kernel from anything other than libc.
- Someone 5y agohttps://lwn.net/Articles/806776/ https://lwn.net/Articles/806776/ discusses that feature and says “Switching Go to use the libc wrappers (as is already done on Solaris and macOS)”, so yes, they did that on macOS, too. Reading https://golang.org/doc/go1.11#runtime https://golang.org/doc/go1.11#runtime, that’s fairly recent (since go 1.11)