handle terminal EOF in client_test
This commit is contained in:
@@ -141,7 +141,9 @@ retry:
|
||||
ret = select(1, &set, 0, 0, &tv);
|
||||
if (ret > 0)
|
||||
{
|
||||
*c = getc(stdin);
|
||||
int r = getc(stdin);
|
||||
if (r == EOF) return false;
|
||||
*c = r;
|
||||
return true;
|
||||
}
|
||||
if (errno == EINTR)
|
||||
|
Reference in New Issue
Block a user