Remove errno check at end
Remove errno check at end

Check wasn't right because read/write might not set errno on success. The
perror is problematic because the tty is still in a bad state.

sjmulder/trickle