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

Issue 11819021: NaCl: Clean up file descriptor setup in nacl_helper on linux (Closed)

Created:
7 years, 11 months ago by Mark Seaborn
Modified:
7 years, 11 months ago
Reviewers:
jam, Roland McGrath
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

NaCl: Clean up file descriptor setup in nacl_helper on linux There is no need to be using dup2() to set up an FD with a fixed number; this risks overwriting an FD. The point of base::GlobalDescriptors is that it provides a level of indirection that allows any FD number to be used. Remove kNaClBrowserDescriptor. Remove the browserdesc argument that is not used for anything other than an assertion and so isn't needed. BUG=https://code.google.com/p/nativeclient/issues/detail?id=2096 TEST=NaCl tests in browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176106

Patch Set 1 #

Patch Set 2 : Remove kNaClBrowserDescriptor #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -21 lines) Patch
M chrome/app/nacl_fork_delegate_linux.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/nacl_fork_delegate_linux.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/nacl_helper_linux.h View 1 1 chunk +3 lines, -6 lines 2 comments Download
M chrome/nacl/nacl_helper_linux.cc View 1 1 chunk +1 line, -7 lines 0 comments Download
M content/public/common/zygote_fork_delegate_linux.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Mark Seaborn
7 years, 11 months ago (2013-01-09 18:19:28 UTC) #1
Roland McGrath
Also remove kNaClBrowserDescriptor.
7 years, 11 months ago (2013-01-09 19:02:10 UTC) #2
Mark Seaborn
On 9 January 2013 11:02, <mcgrathr@chromium.org> wrote: > Also remove kNaClBrowserDescriptor. > It's still used ...
7 years, 11 months ago (2013-01-09 19:09:59 UTC) #3
Mark Seaborn
On 9 January 2013 11:02, <mcgrathr@chromium.org> wrote: > Also remove kNaClBrowserDescriptor. > It's still used ...
7 years, 11 months ago (2013-01-09 19:09:59 UTC) #4
Roland McGrath
On 2013/01/09 19:09:59, Mark Seaborn wrote: > On 9 January 2013 11:02, <mailto:mcgrathr@chromium.org> wrote: > ...
7 years, 11 months ago (2013-01-09 19:16:09 UTC) #5
Mark Seaborn
On 9 January 2013 11:16, <mcgrathr@chromium.org> wrote: > On 2013/01/09 19:09:59, Mark Seaborn wrote: > ...
7 years, 11 months ago (2013-01-09 22:43:39 UTC) #6
Mark Seaborn
On 9 January 2013 11:16, <mcgrathr@chromium.org> wrote: > On 2013/01/09 19:09:59, Mark Seaborn wrote: > ...
7 years, 11 months ago (2013-01-09 22:43:39 UTC) #7
Roland McGrath
lgtm
7 years, 11 months ago (2013-01-09 22:57:35 UTC) #8
Mark Seaborn
+jam for OWNERS review
7 years, 11 months ago (2013-01-09 23:51:43 UTC) #9
jam
lgtm https://codereview.chromium.org/11819021/diff/6002/chrome/common/nacl_helper_linux.h File chrome/common/nacl_helper_linux.h (right): https://codereview.chromium.org/11819021/diff/6002/chrome/common/nacl_helper_linux.h#newcode18 chrome/common/nacl_helper_linux.h:18: // For communications between NaCl loader and browser. ...
7 years, 11 months ago (2013-01-10 17:37:50 UTC) #10
Mark Seaborn
7 years, 11 months ago (2013-01-10 17:43:19 UTC) #11
https://codereview.chromium.org/11819021/diff/6002/chrome/common/nacl_helper_...
File chrome/common/nacl_helper_linux.h (right):

https://codereview.chromium.org/11819021/diff/6002/chrome/common/nacl_helper_...
chrome/common/nacl_helper_linux.h:18: // For communications between NaCl loader
and browser.
On 2013/01/10 17:37:50, John Abd-El-Malek wrote:
> nit: should this be removed now?

No, this comment still applies.  kNaClSandboxDescriptor is used for
communicating with the browser process.

Powered by Google App Engine
This is Rietveld 408576698