tarm / serial

BSD 3-Clause "New" or "Revised" License
1.61k stars 452 forks source link

O_NONBLOCK has undefined behavior #50

Closed raggi closed 4 years ago

raggi commented 8 years ago

The behavior of setting O_NONBLOCK is by spec undefined, and poorly documented where attempts are made to define a platforms behavior. More importantly, it contradicts the intent of the io.Reader interface and causes major idle cost for most common usage patterns.