Skip to content
Snippets Groups Projects
Commit e69c96d2 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

IOBuffer: Propagate errno to the file object on error.

parent 2062be4f
No related branches found
No related tags found
No related merge requests found
...@@ -957,6 +957,7 @@ PIKECLASS IOBuffer ...@@ -957,6 +957,7 @@ PIKECLASS IOBuffer
if( res == -1 && errno == EINTR ) if( res == -1 && errno == EINTR )
continue; continue;
if( res <= 0 ) { if( res <= 0 ) {
fd->my_errno = errno;
if (!written) written = -1; if (!written) written = -1;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment