vsergeev / python-periphery

A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
MIT License
529 stars 139 forks source link

Retry interrupted system calls #1

Closed nzjrs closed 4 years ago

nzjrs commented 9 years ago

For Python < 3.5 (https://www.python.org/dev/peps/pep-0475/) it would be good if the library retried system calls on EINTR

This happens frequently with cheap (non-FTDI in my experience) USB-Serial dongles.

vsergeev commented 9 years ago

This is an important catch, thanks. I'll look into it.

vsergeev commented 6 years ago

Marking this issue as help wanted, as I haven't yet encountered the hardware to reproduce and implement this.

vsergeev commented 4 years ago

Closing due to inactivity. Will re-open if this issue resurfaces.