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

Issue 23455051: Use close$NOCANCEL on the Mac (Closed)

Created:
7 years, 3 months ago by Mark Mentovai
Modified:
7 years, 3 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Use close$NOCANCEL on the Mac, so that it has deterministic behavior when it fails with EINTR. Specifically, in this case, the FD will already have been closed. BUG=269623 R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223369

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
M base/base.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A base/mac/close_nocancel.cc View 1 1 chunk +79 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mark Mentovai
7 years, 3 months ago (2013-09-13 21:33:52 UTC) #1
Nico
(I'm not ignoring this review, it just takes a while to process. I read through ...
7 years, 3 months ago (2013-09-14 00:15:25 UTC) #2
Nico
So, do we have any evidence that closef_locked() actually can return EINTR? Just looking through ...
7 years, 3 months ago (2013-09-14 01:19:39 UTC) #3
Mark Mentovai
The VFS layer passes the close on to a lower layer, which might be a ...
7 years, 3 months ago (2013-09-14 02:14:09 UTC) #4
Nico
https://codereview.chromium.org/23455051/diff/1/base/mac/close_nocancel.cc File base/mac/close_nocancel.cc (right): https://codereview.chromium.org/23455051/diff/1/base/mac/close_nocancel.cc#newcode33 base/mac/close_nocancel.cc:33: // overridden. Does this work without -flat_namespace / DYLD_FORCE_FLAT_NAMESPACE? ...
7 years, 3 months ago (2013-09-16 14:08:01 UTC) #5
Mark Mentovai
Yes, it works without -flat_namespace. It only affects our own code. It doesn’t impact other ...
7 years, 3 months ago (2013-09-16 14:48:34 UTC) #6
Nico
On Mon, Sep 16, 2013 at 7:48 AM, <mark@chromium.org> wrote: > Yes, it works without ...
7 years, 3 months ago (2013-09-16 14:49:33 UTC) #7
Mark Mentovai
7 years, 3 months ago (2013-09-16 16:56:12 UTC) #8
I filed a radar and updated the CL with a reference to it.

Powered by Google App Engine
This is Rietveld 408576698