From c697133a2db2aeb52e6c4a4b0315e72d6b392ebb Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 19 Jul 2024 21:46:29 +0900 Subject: [PATCH] Fix typo in accept4-sysv.c (#1235) --- libc/sock/accept4-sysv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sock/accept4-sysv.c b/libc/sock/accept4-sysv.c index 20ed11c37..86065680e 100644 --- a/libc/sock/accept4-sysv.c +++ b/libc/sock/accept4-sysv.c @@ -40,7 +40,7 @@ int sys_accept4(int server, struct sockaddr_storage *addr, int flags) { if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) return einval(); 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 unassert((file_mode = __sys_fcntl(client, F_GETFD)) != -1); unassert(!__sys_fcntl(client, F_SETFD,