FAQ
It does more than that, including setting the fd to -1. There might be an
argument towards making that procedure safer when performed concurrently,
though, so that Close+Read will necessarily behave correctly. I suggest
opening an issue for that.
On Mon Oct 27 2014 at 2:53:39 PM Nick Patavalis wrote:


On Monday, October 27, 2014 6:48:24 PM UTC+2, James Bardin wrote:


you should be using the file's Close() method.
Which, if I'm not mistaken, just calls syscall.Close()

/npat

--
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 | 16 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