We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
socketpair
EINVAL
1 parent 356383b commit ee47e67Copy full SHA for ee47e67
lib/picos_io/picos_io.ml
@@ -440,7 +440,8 @@ module Unix = struct
440
retries =
441
match Unix.socketpair ?cloexec socket_domain socket_type mystery with
442
| sockets -> sockets
443
- | exception Unix.Unix_error ((EACCES | EADDRINUSE | ENOENT), _, _)
+ | exception
444
+ Unix.Unix_error ((EACCES | EADDRINUSE | EINVAL | ENOENT), _, _)
445
when 0 < retries ->
446
socketpair_win32 ?cloexec socket_domain socket_type mystery
447
(retries - 1)
0 commit comments