FAQ
I don't understand what you're alluding to. If you call read on a closed
fd, you get an appropriate error saying you're attempting to do so.


On Mon Oct 27 2014 at 2:37:01 PM Nick Patavalis wrote:


On Monday, October 27, 2014 6:33:27 PM UTC+2, Nick Patavalis wrote:

Yes, If, at the exact instance you call "close()", the goroutine is, in
fact, blocked on read(2). If not (e.g. if it's *about* to call read again)
you risk the chance of it reading from another FD...
s/instance/instant

--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 11 of 28 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 26, '14 at 9:10a
activeOct 27, '14 at 7:01p
posts28
users6
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase