diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-02-15 16:22:49 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-02-15 16:22:49 +0000 |
commit | 4f59165c3e54ab99b7fbd19a297cb771ed1d5f3b (patch) | |
tree | 00120ad13b38025e42b522027284f4a321428309 /src/sysdep.c | |
parent | 5344a4401ebfa5e205fb98d131dfca5fa587b39f (diff) | |
download | emacs-4f59165c3e54ab99b7fbd19a297cb771ed1d5f3b.tar.gz |
(sys_write): If any bytes were written, return how many.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index b7baf4fbb58..0f49fcc6fa4 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2754,7 +2754,7 @@ sys_write (fildes, buf, nbyte) if (errno == EINTR) continue; else - return (-1); + return (bytes_written ? bytes_written : -1); } buf += rtnval; |