HomeFreeBSD

MFC r362833:

Description

MFC r362833:

Rework linux accept(2). This makes the code flow easier to follow,
and fixes a bug where calling accept(2) could result in closing fd 0.

Note that the code still contains a number of problems: it makes
assumptions about l_sockaddr_in being the same as sockaddr_in,
the EFAULT-related code looks like it doesn't work at all, and the
socket type check is racy. Those will be addressed later on;
I'm trying to work in small steps to avoid breaking one thing while
fixing another.

It fixes Redis, among other things.

Sponsored by: The FreeBSD Foundation

Details

Provenance
traszAuthored on
Parents
rS364705: MFC r362735:
Branches
Unknown
Tags
Unknown