mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 12:30:24 +08:00
Cygwin: AF_UNIX: socketpair: set O_RDWR
This commit is contained in:
parent
ddbcf815c0
commit
8d99c2f9e2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user