aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-02-15 16:22:49 +0000
committerRichard M. Stallman1994-02-15 16:22:49 +0000
commitaa67090401dce28011053d3e30d6f5bbe7a91a9a (patch)
treefb1b907f237c0f88a4fa0ebaf66ee62a1f0122f8 /src
parent7071e5ddb787a0b5a06fbb48c496507790e52181 (diff)
downloademacs-aa67090401dce28011053d3e30d6f5bbe7a91a9a.tar.gz
emacs-aa67090401dce28011053d3e30d6f5bbe7a91a9a.zip
(sys_write): If any bytes were written, return how many.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c2
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)
2754 if (errno == EINTR) 2754 if (errno == EINTR)
2755 continue; 2755 continue;
2756 else 2756 else
2757 return (-1); 2757 return (bytes_written ? bytes_written : -1);
2758 } 2758 }
2759 2759
2760 buf += rtnval; 2760 buf += rtnval;