]> Cypherpunks repositories - gostls13.git/commit
net: permit pollster DelFD to return whether to call Wakeup
authorIan Lance Taylor <iant@golang.org>
Thu, 7 Feb 2013 01:18:53 +0000 (17:18 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 7 Feb 2013 01:18:53 +0000 (17:18 -0800)
commit0592c449560d5c748d3d2a2e44dc95d40136f384
treed7bd18bf4af833eaa2db7206033f40edd9004b18
parentc2fb6e2c0bf7ba6866eb27567b5d16683680e63b
net: permit pollster DelFD to return whether to call Wakeup

This is necessary for systems that use select as the pollster,
such as Solaris (supported by gccgo).  It corresponds to the
bool returned by AddFD.  In general it's not clearly defined
what happens when a descriptor used in a select is closed, and
different systems behave differently.  Waking up the select
will cause the right thing to happen: the closed descriptor
will be dropped from the next iteration.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7303056
src/pkg/net/fd_bsd.go
src/pkg/net/fd_darwin.go
src/pkg/net/fd_linux.go
src/pkg/net/fd_unix.go