Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
silon42
· 2y ago · 0 comments
Surely File.close will clear the fd on success...
Comments
[–]
tux3
2y ago
You're right, looks like it does!
[–]
MartinodF
2y ago
Yeah but is it safe for concurrent use?
[–]
masklinn
2y ago
If you’re performing concurrent unprotected closing of an fd, you’re deep into the wild lands of nonsense already.
[–]
lionkor
2y ago
(pretty much) only channels are safe for concurrent use in go