Skip to content

Commit 2563dff

Browse files
committed
Also retry socketpair on ENOENT on Windows
1 parent 20f7969 commit 2563dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/picos_io/picos_io.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ module Unix = struct
440440
retries =
441441
match Unix.socketpair ?cloexec socket_domain socket_type mystery with
442442
| sockets -> sockets
443-
| exception Unix.Unix_error ((EACCES | EADDRINUSE), _, _)
443+
| exception Unix.Unix_error ((EACCES | EADDRINUSE | ENOENT), _, _)
444444
when 0 < retries ->
445445
socketpair_win32 ?cloexec socket_domain socket_type mystery
446446
(retries - 1)

0 commit comments

Comments
 (0)