mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 20:23:35 +08:00
Fix SOCK_CLOEXEC for accept4
Adjust the value of SOCK_CLOEXEC to match the kernel value used for accept4. This has never worked in the past, and all old applications are broken, therefore we change this value to match the kernel value.
This commit is contained in:
parent
cbbda7adb2
commit
fa1b9bae63
@ -1,3 +1,8 @@
|
||||
2010-02-01 Kyle McMartin <kyle@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/hppa/bits/socket.h: Fix value of
|
||||
SOCK_CLOEXEC to match O_CLOEXEC.
|
||||
|
||||
2010-02-01 Carlos O'Donell <carlos@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/hppa/Versions: Bump
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* System-specific socket constants and types. Linux version.
|
||||
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009,
|
||||
2010 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -62,7 +62,7 @@ enum __socket_type
|
||||
/* Flags to be ORed into the type parameter of socket and socketpair and
|
||||
used for the flags parameter of paccept. */
|
||||
|
||||
SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
|
||||
SOCK_CLOEXEC = 01000000, /* Atomically set close-on-exec flag for the
|
||||
new descriptor(s). */
|
||||
#define SOCK_CLOEXEC SOCK_CLOEXEC
|
||||
#undef SOCK_NONBLOCK
|
||||
|
Loading…
Reference in New Issue
Block a user