]> sourceware.org Git - glibc.git/commit
Linux: Simplify __opensock and fix race condition [BZ #28353]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 28 Sep 2021 16:55:49 +0000 (18:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 28 Sep 2021 16:55:49 +0000 (18:55 +0200)
commit5bf07e1b3a74232bfb8332275110be1a5da50f83
treea6e60e0dfc2552654b35cdcce460ab099926785c
parent9874ca536b1d0662b1cea46af3ce09a4d42aeb32
Linux: Simplify __opensock and fix race condition [BZ #28353]

AF_NETLINK support is not quite optional on modern Linux systems
anymore, so it is likely that the first attempt will always succeed.
Consequently, there is no need to cache the result.  Keep AF_UNIX
and the Internet address families as a fallback, for the rare case
that AF_NETLINK is missing.  The other address families previously
probed are totally obsolete be now, so remove them.

Use this simplified version as the generic implementation, disabling
Netlink support as needed.
socket/opensock.c
sysdeps/unix/sysv/linux/opensock.c [deleted file]
sysdeps/unix/sysv/linux/s390/opensock.c [deleted file]
This page took 0.049963 seconds and 5 git commands to generate.