4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-02 04:20:28 +08:00

Cygwin: AF_UNIX: socketpair: set O_RDWR

This commit is contained in:
Ken Brown 2020-10-22 12:41:59 -04:00
parent ddbcf815c0
commit 8d99c2f9e2

View File

@ -1509,6 +1509,8 @@ fhandler_socket_unix::socketpair (int af, int type, int protocol, int flags,
goto fh_open_pipe_failed;
fh->set_handle (ph2);
fh->connect_state (connected);
set_flags (O_RDWR | O_BINARY);
fh->set_flags (O_RDWR | O_BINARY);
if (flags & SOCK_NONBLOCK)
{
set_nonblocking (true);