| Index: runtime/bin/socket_macos.cc
|
| diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc
|
| index 708cd3cdea9bd926079f611df3870980e8563d57..d55907b15aa8090db82f8840ededc89d69027c1d 100644
|
| --- a/runtime/bin/socket_macos.cc
|
| +++ b/runtime/bin/socket_macos.cc
|
| @@ -58,6 +58,7 @@ static intptr_t Create(const RawAddr& addr) {
|
| return -1;
|
| }
|
| FDUtils::SetCloseOnExec(fd);
|
| + FDUtils::SetNonBlocking(fd);
|
| return fd;
|
| }
|
|
|
| @@ -79,8 +80,6 @@ intptr_t Socket::CreateConnect(const RawAddr& addr) {
|
| return fd;
|
| }
|
|
|
| - FDUtils::SetNonBlocking(fd);
|
| -
|
| return Connect(fd, addr);
|
| }
|
|
|
|
|