[core] fall back to accept() if accept4() EPERM (fixes #2998)
commitfce489b806d82b7c8d59a44e7e394c4aeba8448a
authorGlenn Strauss <gstrauss@gluelogic.com>
Wed, 1 Jan 2020 20:39:32 +0000 (1 15:39 -0500)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sun, 26 Jan 2020 05:41:05 +0000 (26 00:41 -0500)
treefef0ccbf4a1c98d1f819a81d190d6969f1205b5c
parent9cdfb4846653253f2c11dd74964eb4a9bc006a2c
[core] fall back to accept() if accept4() EPERM (fixes #2998)

On some architectures, accept4() might result in EPERM depending
on Linux kernel and/or glibc support for accept4()

(thx alex-che)

x-ref:
  "accept4 returns EPERM instead of ENOSYS on some platforms"
  https://redmine.lighttpd.net/issues/2998
src/fdevent.c