You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some applications call socket(2) with SOCK_CLOEXEC or SOCK_NONBLOCK. getsockopt(fd, SOL_SOCKET, SO_TYPE, ...) returns only its actual type SOCK_STREAM and these flags are ignored.
These flags must be checked and included in host-side socket creation.
Since Linux 2.6.27, the type argument serves a second purpose: in addition to
specifying a socket type, it may include the bitwise OR of any of the follow‐
ing values, to modify the behavior of socket():
SOCK_NONBLOCK Set the O_NONBLOCK file status flag on the open file descrip‐
tion (see open(2)) referred to by the new file descriptor.
Using this flag saves extra calls to fcntl(2) to achieve the
same result.
SOCK_CLOEXEC Set the close-on-exec (FD_CLOEXEC) flag on the new file de‐
scriptor. See the description of the O_CLOEXEC flag in
open(2) for reasons why this may be useful.
Some applications call
socket(2)
withSOCK_CLOEXEC
orSOCK_NONBLOCK
.getsockopt(fd, SOL_SOCKET, SO_TYPE, ...)
returns only its actual typeSOCK_STREAM
and these flags are ignored.These flags must be checked and included in host-side socket creation.
The text was updated successfully, but these errors were encountered: