Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(434)

Issue 12493043: code review 12493043: net: detect bad F_DUPFD_CLOEXEC on OS X 10.6 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by bradfitz
Modified:
11 years, 7 months ago
Reviewers:
dave, iant
CC:
golang-dev, iant, dave_cheney.net
Visibility:
Public.

Description

net: detect bad F_DUPFD_CLOEXEC on OS X 10.6 On 10.6, OS X's fcntl returns EBADF instead of EINVAL.

Patch Set 1 #

Patch Set 2 : diff -r 0539958c11bb https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0539958c11bb https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 0539958c11bb https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r a14c507d13e9 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r a14c507d13e9 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 50c9f3544eed https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M src/pkg/net/fd_unix.go View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 15
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 7 months ago (2013-08-06 00:04:10 UTC) #1
iant
According to build.golang.org the call is failing with EBADF, so suppose we just try handling ...
11 years, 7 months ago (2013-08-06 00:23:10 UTC) #2
bradfitz
Maybe. But I don't want a real EBADF to neuter it for the lifetime of ...
11 years, 7 months ago (2013-08-06 00:25:25 UTC) #3
bradfitz
I'm getting off the bus soon here, so somebody else can fix this if it's ...
11 years, 7 months ago (2013-08-06 00:26:00 UTC) #4
iant
On Mon, Aug 5, 2013 at 5:25 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Maybe. But ...
11 years, 7 months ago (2013-08-06 00:28:33 UTC) #5
dave_cheney.net
I have a darwin/386 system here, let me test. On 06/08/2013, at 10:25, Brad Fitzpatrick ...
11 years, 7 months ago (2013-08-06 01:30:16 UTC) #6
bradfitz
I just booted my 10.6 machine. It was running pre-Go 1 go from Dec 21, ...
11 years, 7 months ago (2013-08-06 01:33:12 UTC) #7
dave_cheney.net
LGTM. Passes on my darwin/386 machine.
11 years, 7 months ago (2013-08-06 02:18:40 UTC) #8
bradfitz
I downloaded http://www.opensource.apple.com/tarballs/xnu/xnu-1504.15.3.tar.gz (the kernel for 10.6 on my machine at least) and read bsd/kern/kern_descrip.c's ...
11 years, 7 months ago (2013-08-06 03:39:54 UTC) #9
bradfitz
Hello golang-dev@googlegroups.com, iant@golang.org, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 7 months ago (2013-08-06 03:58:35 UTC) #10
bradfitz
PTAL. Slightly tweaked, no more init func, and better comment. On Mon, Aug 5, 2013 ...
11 years, 7 months ago (2013-08-06 03:59:07 UTC) #11
dave_cheney.net
Testing now. On 06/08/2013, at 13:59, Brad Fitzpatrick <bradfitz@golang.org> wrote: > PTAL. Slightly tweaked, no ...
11 years, 7 months ago (2013-08-06 04:27:11 UTC) #12
iant
LGTM
11 years, 7 months ago (2013-08-06 05:14:38 UTC) #13
dave_cheney.net
LGTM. Thanks.
11 years, 7 months ago (2013-08-06 05:32:13 UTC) #14
bradfitz
11 years, 7 months ago (2013-08-06 14:18:21 UTC) #15
*** Submitted as https://code.google.com/p/go/source/detail?r=2585605c42c0 ***

net: detect bad F_DUPFD_CLOEXEC on OS X 10.6

On 10.6, OS X's fcntl returns EBADF instead of EINVAL.

R=golang-dev, iant, dave
CC=golang-dev
https://codereview.appspot.com/12493043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b