EWOULDBLOCK to be returned rather than looping again to see if any characters are pending. Also, fix another bug in the original code; if someone changed VMIN behind our back, last_cc might be uninitialized when we reference it.