deal correctly with read() from the DRM failing

main
Michel Daenzer 2003-04-23 14:21:17 +00:00
parent d5db1144dd
commit 23a76c3759
1 changed files with 1 additions and 1 deletions

View File

@ -1460,7 +1460,7 @@ static void drmSIGIOHandler(int interrupt, void *closure)
#if 0 #if 0
fprintf(stderr, "Trying %d\n", entry->fd); fprintf(stderr, "Trying %d\n", entry->fd);
#endif #endif
if ((count = read(entry->fd, buf, sizeof(buf)))) { if ((count = read(entry->fd, buf, sizeof(buf))) > 0) {
buf[count] = '\0'; buf[count] = '\0';
#if 0 #if 0
fprintf(stderr, "Got %s\n", buf); fprintf(stderr, "Got %s\n", buf);