Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Issue 907883002: Remove SetNonBlocking/SetBlocking methods from Socket and add missing close-on-exec (Closed)

Created:
5 years, 10 months ago by Søren Gjesse
Modified:
5 years, 10 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove SetNonBlocking/SetBlocking methods from Socket and add missing close-on-exec The methods SetNonBlocking/SetBlocking on Sockets where not implemented on Linux and not used on Windwsm. Removed and call directly to FDUtils when needed. In Socket::Accept setting close on exec was missing on OS X and Android. R=kustermann@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43627

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -56 lines) Patch
M runtime/bin/file_system_watcher_macos.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/bin/socket.h View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 5 chunks +5 lines, -14 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket_macos.cc View 1 5 chunks +5 lines, -14 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Søren Gjesse
5 years, 10 months ago (2015-02-09 16:23:51 UTC) #1
kustermann
lgtm https://codereview.chromium.org/907883002/diff/1/runtime/bin/socket_android.cc File runtime/bin/socket_android.cc (right): https://codereview.chromium.org/907883002/diff/1/runtime/bin/socket_android.cc#newcode404 runtime/bin/socket_android.cc:404: FDUtils::SetCloseOnExec(socket); I'd reverse the order. https://codereview.chromium.org/907883002/diff/1/runtime/bin/socket_macos.cc File runtime/bin/socket_macos.cc ...
5 years, 10 months ago (2015-02-09 16:25:32 UTC) #2
Søren Gjesse
https://codereview.chromium.org/907883002/diff/1/runtime/bin/socket_android.cc File runtime/bin/socket_android.cc (right): https://codereview.chromium.org/907883002/diff/1/runtime/bin/socket_android.cc#newcode404 runtime/bin/socket_android.cc:404: FDUtils::SetCloseOnExec(socket); On 2015/02/09 16:25:32, kustermann wrote: > I'd reverse ...
5 years, 10 months ago (2015-02-10 07:28:15 UTC) #3
Søren Gjesse
5 years, 10 months ago (2015-02-10 07:30:24 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 43627.

Powered by Google App Engine
This is Rietveld 408576698