zigbee-steward icon indicating copy to clipboard operation
zigbee-steward copied to clipboard

Serial library's old version doesn't handle interrupted system calls

Open joonas-fi opened this issue 3 years ago • 2 comments

Problem

Get interrupted system call errors from ZNP ReadFrame() failing.

Serial library is at an old version:

https://github.com/dyrkin/zigbee-steward/blob/a1dc32edfb8560969ea4aedb6f85d05d8279cd7a/go.mod#L12

This old version seems to bypass Go's regular OS I/O interfaces (that would take EINTR into account), and doesn't take EINTR into account at all.

Fix

Update to new version, it correctly retries on EINTR.

joonas-fi avatar May 20 '21 13:05 joonas-fi