Poll on macOS 10.12 is broken
I can't say I'm surprised. I used to be responsible for the port and upkeep of a relatively low level product to OS X. It was far and away the most troublesome platform. We would frequently run into bugs that had been reported on openradar for years without having been addressed.Off hand I remember spending the better part of two days trying to understand a bug that was traced to a coroutine issue -- OS X was just not saving a required register, known and reported for 5 major versions.I remember discovering that unnamed semaphores don't work on OS X. Not that the functions aren't implemented, just that they always return an error.So I'm not surprised that poll() would be broken, nor am I surprised that it's broken again.The only thing that surprised me anymore is how many people continue to insist to me that OS X (or macOS now, I guess) is a great UNIX. It may be a great desktop OS.