Index: runtime/bin/socket_macos.cc |
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc |
index 2e336a2003709fd5377c29f150d1f5b1a6aa7174..e54cc591fe72db61394e30d7708a9028ff019191 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); |
} |