]> git.ipfire.org Git - thirdparty/chrony.git/commit
socket: add support for socket() flags
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 23 Jul 2019 15:26:29 +0000 (17:26 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Jul 2019 13:35:00 +0000 (15:35 +0200)
commit27fd7519150f36a12f6c91e59b4b3615377f0532
tree4acd4425b64498c61e2c838b124b1d97184aa263
parent4d26cfc92b878b8a90b60488361bd8cdba84903a
socket: add support for socket() flags

On start, check if the SOCK_CLOEXEC and SOCK_NONBLOCK flags are
supported in the socket() call and use them instead of fcntl() in order
to reduce the number of system calls required to send a client request.
socket.c