]> Git Repo - binutils.git/blobdiff - gdb/rdi-share/unixcomm.c
import gdb-1999-11-01 snapshot
[binutils.git] / gdb / rdi-share / unixcomm.c
index 61d84e33be18ae9c84c1d742f4acdaf232314e9a..86bffc045e2eff077095155ac277bcc68d84277a 100644 (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;
This page took 0.023428 seconds and 4 git commands to generate.