[go-nuts] Go 1.9 poller, close os.File used by another goroutine

2017-08-24 Thread Dave Cheney
If that file is a pipe, yes. If that file is not a pipe, no, it's still not possible because POSIX doesn't give those guarnetees without using non blocking IO. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and st

[go-nuts] Go 1.9 poller, close os.File used by another goroutine

2017-08-24 Thread Dave Keck
Hey all, With Go 1.9's use of the poller for file I/O, I'd like to use f.Close() to make another goroutine exit if it's blocked on a read or write. Is that safe in Go 1.9? (Currently I'm using a kqueue to safely handle such teardown.) Thanks! David -- You received this message because you are s