rocasa / ttylog

Print everything to stdout that comes from a serial device.
GNU General Public License v2.0
30 stars 18 forks source link

Bugfix: exit on unreadable file descriptor #9

Closed guyshapiro closed 6 years ago

guyshapiro commented 7 years ago

When the tty's file descriptor became unreadable, exit instead of entering an infinite loop. This can happen when a USB device is removed.

jame commented 6 years ago

I am indeed interested in the work you've done here; however, I imported another earlier PR and that now conflicts with how you attempted to do it. If you could redo it against the current code, I'd appreciate it.

guyshapiro commented 6 years ago

As you requested, I did a rebase over the updated master.