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
562 if ((r = read(in, rdbuf+n, size-n)) <= 0) {562 if ((r = read(in, rdbuf+n, size-n)) <= 0) {
563 if (r == EINTR)563 if (r == EINTR)
564 continue;564 continue;
565 if (r == 0)565 if (r == 0) {
566 eof = 1;566 eof = 1;
567 else567 } else {
568 *err = 1;568 *err = 1;
569 perror("ctxread");
570 }
569 return NULL;571 return NULL;
570 }572 }
571 }573 }

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