]> granicus.if.org Git - libevent/commit
Correctly handle running on a system where accept4 doesn't work.
authorNick Mathewson <nickm@torproject.org>
Tue, 1 May 2012 17:03:33 +0000 (13:03 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 1 May 2012 18:34:31 +0000 (14:34 -0400)
commit9fbfe9b94838cea245472b5619dc4a111fb0dd30
tree34b0ee331982d795e8d46651e218dbe4c1c24a95
parenta163026099ce9a6b46bebb7e09f4fb5efd51d200
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.
evutil.c