Skip to content

Conversation

@LongHairedHacker
Copy link

I've been using this library for quite some time now and recently after upgrading all of my projects to go 1.14 I noticed that its gpio watcher would panic from time to time in fdSelect in watcher.go line 122.

After some investigation I found that the syscall.Select in doSelect terminates with EINTR.
I have no clue as to why that did not happen before, but possibly the upgrade to go 1.14 or other changes in my environment associated with it caused it.

Anyway, if I remember correctly it should be safe to retry a select after it terminated with EINTR,
so I modified doSelect accordingly.

@LongHairedHacker
Copy link
Author

LongHairedHacker commented Apr 7, 2020

This pull request on the upstream repo fixes the same issue in a different way: brian-armstrong#16
It also suggests that this problem might indeed be related to runtime changes in go.1.14.

//Edit: I should have done some basic research: https://golang.org/doc/go1.14#runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants