Commit 9fbfe9b94838cea245472b5619dc4a111fb0dd30

Nick Mathewson 2012-05-01T13:03:33

Correctly handle running on a system where accept4 doesn't work. Previously, we treated EINVAL as the only errno that indicated a broken accept4. But EINVAL only appears when one of the SOCK_* options isn't supported. If the accept4 syscall itself isn't there, we'll get an ENOSYS. Reported by Azat Khuzhin.