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

Issue 7300045: code review 7300045: exp/inotify: close event channel before file descriptor (Closed)

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

Description

exp/inotify: close event channel before file descriptor Closing the inotify file descriptor can take over a second when running on Ubuntu Precise in an NFS directory, leading to the test error in issue 3132. Closing the event channel first lets a client that does not care about the error channel move on. Fixes issue 3132.

Patch Set 1 #

Total comments: 2

Patch Set 2 : diff -r 93266555c621 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/pkg/exp/inotify/inotify_linux.go View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5
iant
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 5 months ago (2013-02-05 07:01:01 UTC) #1
dave_cheney.net
LGTM. https://codereview.appspot.com/7300045/diff/1/src/pkg/exp/inotify/inotify_linux.go File src/pkg/exp/inotify/inotify_linux.go (right): https://codereview.appspot.com/7300045/diff/1/src/pkg/exp/inotify/inotify_linux.go#newcode156 src/pkg/exp/inotify/inotify_linux.go:156: n, err := syscall.Read(w.fd, buf[0:]) buf[:]
12 years, 5 months ago (2013-02-05 07:04:54 UTC) #2
rsc
LGTM
12 years, 5 months ago (2013-02-05 12:14:01 UTC) #3
iant
https://codereview.appspot.com/7300045/diff/1/src/pkg/exp/inotify/inotify_linux.go File src/pkg/exp/inotify/inotify_linux.go (right): https://codereview.appspot.com/7300045/diff/1/src/pkg/exp/inotify/inotify_linux.go#newcode156 src/pkg/exp/inotify/inotify_linux.go:156: n, err := syscall.Read(w.fd, buf[0:]) On 2013/02/05 07:04:54, dfc ...
12 years, 5 months ago (2013-02-05 14:07:25 UTC) #4
iant
12 years, 5 months ago (2013-02-05 14:11:13 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=a9211b512258 ***

exp/inotify: close event channel before file descriptor

Closing the inotify file descriptor can take over a second
when running on Ubuntu Precise in an NFS directory, leading to
the test error in issue 3132.  Closing the event channel first
lets a client that does not care about the error channel move
on.

Fixes issue 3132.

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

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