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
Original bug ID: 6947 Reporter: goswin Assigned to:@mshinwell Status: resolved (set by @mshinwell on 2017-03-07T11:55:26Z) Resolution: fixed Priority: normal Severity: minor Platform: Linux Version: 4.01.0 Target version: later Fixed in version: 4.05.0 +dev/beta1/beta2/beta3/rc1 Category: otherlibs Related to:#5256
Bug description
From 'man 2 socket':
Since Linux 2.6.27, the type argument serves a second purpose: in addi-
tion to specifying a socket type, it may include the bitwise OR of any
of the following values, to modify the behavior of socket():
SOCK_NONBLOCK Set the O_NONBLOCK file status flag on the new open
file description. 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
descriptor. See the description of the O_CLOEXEC flag
in open(2) for reasons why this may be useful.
In C those flags are combined with the type. In ocaml the type is a variant type so that won't work. But they could be added as optional arguments.
The text was updated successfully, but these errors were encountered:
I agree that implementing SOCK_NONBLOCK doesn't seem worth the time spent. The close-on-exec option has been implemented in #5256, which has been fixed now.
Original bug ID: 6947
Reporter: goswin
Assigned to: @mshinwell
Status: resolved (set by @mshinwell on 2017-03-07T11:55:26Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: Linux
Version: 4.01.0
Target version: later
Fixed in version: 4.05.0 +dev/beta1/beta2/beta3/rc1
Category: otherlibs
Related to: #5256
Bug description
From 'man 2 socket':
In C those flags are combined with the type. In ocaml the type is a variant type so that won't work. But they could be added as optional arguments.
The text was updated successfully, but these errors were encountered: