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

Issue 2394413002: Open MessagePumpLibevent's pipe with O_CLOEXEC (Closed)

Created:
4 years, 2 months ago by Luis Héctor Chávez
Modified:
4 years, 2 months ago
Reviewers:
dcheng
CC:
chromium-reviews, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Open MessagePumpLibevent's pipe with O_CLOEXEC This prevents the pipe's fds from being leaked into child processes. TEST=git cl try BUG=653930 Committed: https://crrev.com/f9c8562e55b669915faf87d8d7eda32ae62bf661 Cr-Commit-Position: refs/heads/master@{#423899}

Patch Set 1 #

Patch Set 2 : Limit use of pipe2 to OS_LINUX #

Patch Set 3 : Use correct return and avoid leaking fds on intermediate error #

Patch Set 4 : Use the return value from ScopedFD::release() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -10 lines) Patch
M base/files/file_util.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M base/files/file_util_posix.cc View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download
M base/message_loop/message_pump_libevent.cc View 1 2 1 chunk +2 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
Luis Héctor Chávez
PTAL
4 years, 2 months ago (2016-10-07 16:38:25 UTC) #11
dcheng
lgtm
4 years, 2 months ago (2016-10-07 17:38:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394413002/60001
4 years, 2 months ago (2016-10-07 17:40:11 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-07 17:46:40 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f9c8562e55b669915faf87d8d7eda32ae62bf661 Cr-Commit-Position: refs/heads/master@{#423899}
4 years, 2 months ago (2016-10-07 17:50:10 UTC) #20
nasko
4 years, 2 months ago (2016-10-07 21:16:27 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2401863004/ by nasko@chromium.org.

The reason for reverting is: Reverting since it breaks NaCL tests.

https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%2...

failures:
NaClBrowserTestNonSfiMode.Irt
NaClBrowserTestNonSfiMode.Messaging.

Powered by Google App Engine
This is Rietveld 408576698