=== modified file 'termkey.c' --- termkey.c 2008-02-09 19:01:49 +0000 +++ termkey.c 2008-02-07 02:47:15 +0000 @@ -1,6 +1,5 @@ #include "termkey.h" -#include #include #include @@ -371,9 +370,7 @@ unsigned char buffer[64]; // Smaller than the default size size_t len = read(tk->fd, buffer, sizeof buffer); - if(len == -1 && errno == EAGAIN) - return; - else if(len < 1) + if(len == -1) tk->is_closed = 1; else termkey_pushinput(tk, buffer, len);