Commit aa670904 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sys_write): If any bytes were written, return how many.

parent 7071e5dd
......@@ -2754,7 +2754,7 @@ sys_write (fildes, buf, nbyte)
if (errno == EINTR)
return (-1);
return (bytes_written ? bytes_written : -1);
buf += rtnval;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment