mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix typo in accept4-sysv.c (#1235)
This commit is contained in:
parent
1ff037df3c
commit
c697133a2d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ int sys_accept4(int server, struct sockaddr_storage *addr, int flags) {
|
||||||
if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
|
if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
|
||||||
return einval();
|
return einval();
|
||||||
if ((client = __sys_accept(server, addr, &size, 0)) != -1) {
|
if ((client = __sys_accept(server, addr, &size, 0)) != -1) {
|
||||||
// __sys_accept() has inconsistent flag inheritence across platforms
|
// __sys_accept() has inconsistent flag inheritance across platforms
|
||||||
// this is one of the issues that accept4() was invented for solving
|
// this is one of the issues that accept4() was invented for solving
|
||||||
unassert((file_mode = __sys_fcntl(client, F_GETFD)) != -1);
|
unassert((file_mode = __sys_fcntl(client, F_GETFD)) != -1);
|
||||||
unassert(!__sys_fcntl(client, F_SETFD,
|
unassert(!__sys_fcntl(client, F_SETFD,
|
||||||
|
|
Loading…
Reference in a new issue