Re: [go-nuts] unix.Poll weirdness

2016-09-15 Thread Dan Kortschak
Thanks for the very clear explanation, Ian. I figured there was something like that. It turns out I was using a fifo badly (I was trying to model a sysfs attribute - clearly incorrectly as I now find out that poll should wait on POLLPRI for sysfs attributes). The original problem is now solved. O

Re: [go-nuts] unix.Poll weirdness

2016-09-15 Thread Ian Lance Taylor
On Thu, Sep 15, 2016 at 6:41 PM, Dan Kortschak wrote: > I am in the process of adding sysfs polling support for a physical > device and I'm using a small Go program > (https://play.golang.org/p/5v8DsGv6Dk) to help test whether what I'm > doing is working (it's not yet). > > In doing this, I've fou

[go-nuts] unix.Poll weirdness

2016-09-15 Thread Dan Kortschak
I am in the process of adding sysfs polling support for a physical device and I'm using a small Go program (https://play.golang.org/p/5v8DsGv6Dk) to help test whether what I'm doing is working (it's not yet). In doing this, I've found somethings that I don't understand with the golang.org/x/sys/un