Cygwin: AF_UNIX: socket: set the O_RDWR flag

This commit is contained in:
Ken Brown 2020-10-04 10:18:54 -04:00
parent 0e29048956
commit 5930dca459
1 changed files with 1 additions and 0 deletions

View File

@ -1366,6 +1366,7 @@ fhandler_socket_unix::socket (int af, int type, int protocol, int flags)
wmem (262144);
set_addr_family (AF_UNIX);
set_socket_type (type);
set_flags (O_RDWR | O_BINARY);
if (flags & SOCK_NONBLOCK)
set_nonblocking (true);
if (flags & SOCK_CLOEXEC)