brian-armstrong / gpio

Go library to do GPIO on systems with /sys/class/gpio (sysfs)
BSD 3-Clause "New" or "Revised" License
140 stars 50 forks source link

failed to call syscall.Select, interrupted system call #17

Open honzakadlec opened 4 years ago

honzakadlec commented 4 years ago

Hi @brian-armstrong

for quickly enough changes, I'm getting this error, I think it's comming from https://github.com/brian-armstrong/gpio/blob/72b0058bbbcb724245929a8778d844e5b4fc639f/watcher.go#L118

Cannot we add here check for syscall.EINTR and return there?

Thank you in advance

Jan

wjessop commented 1 year ago

I'm hitting this too. I'm trying to read the tacho signal from a fan that can pulse up to 10k RPM so am watching the pin with high frequency. This may even be an issue for things like buttons that could "bounce" with a high frequency.