x/sys/unix: Select returns (int, error) on linux, but just error elsewhere #11703
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Milestone
Is this inconsistency intentional? Select is a POSIX function and has the same 'int' return value on all supported platforms where it's available, so it seems odd to only expose it on Linux.
(Motivation: I was trying to use github.com/jaracil/poll on OpenBSD, but ironically its Select-based fallback for non-Linux OSes is written assuming the Linux Select API.)
The text was updated successfully, but these errors were encountered: