Retry tcsetattr on EINTR and report failure
Merge pull request #39 from worr/eintr

Retry tcsetattr on EINTR and report failure