]> Cypherpunks repositories - gostls13.git/commit
exp/inotify: close event channel before file descriptor
authorIan Lance Taylor <iant@golang.org>
Tue, 5 Feb 2013 14:11:10 +0000 (06:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Feb 2013 14:11:10 +0000 (06:11 -0800)
commitda35d425214763d7d51d74e0410dc3a431c4a13d
tree9670d46be019e53fcf99982f42c0d65d996132d6
parent255fb521da978916da0d4a2052d7941d950e2a6a
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 #3132.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/7300045
src/pkg/exp/inotify/inotify_linux.go