History

9gc: ctxread: print the error

Sigrid Haflínudóttir committed 6 years ago

Commit c7a2f581 parent a9458ab1 file · +4 −2Browse files

Unified · Split

9pex.c+4−2
@@ -562,10 +562,12 @@ ctxread(C9ctx *c, uint32_t size, int *err) · 561 unmodified lines
562562 if ((r = read(in, rdbuf+n, size-n)) <= 0) {
563563 if (r == EINTR)
564564 continue;
565− if (r == 0)
565+ if (r == 0) {
566566 eof = 1;
567− else
567+ } else {
568568 *err = 1;
569+ perror("ctxread");
570+ }
569571 return NULL;
570572 }
571573 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t