import gdb-1999-11-01 snapshot

This commit is contained in:
Jason Molenda
1999-11-02 04:44:47 +00:00
parent 9503fd8735
commit 5c44784c11
57 changed files with 2267 additions and 391 deletions

View File

@@ -287,7 +287,14 @@ extern int Unix_ReadSerial(unsigned char *buf, int n, bool block)
return -1;
}
else if (err > 0 && FD_ISSET(serpfd, &fdset))
return read(serpfd, buf, n);
{
int s;
s = read(serpfd, buf, n);
if (s < 0)
perror("read:");
return s;
}
else /* err == 0 || FD_CLR(serpfd, &fdset) */
{
errno = ERRNO_FOR_BLOCKED_IO;