changeset 5954:02f406110e4b

(sys_write): If any bytes were written, return how many.
author Richard M. Stallman <rms@gnu.org>
date Tue, 15 Feb 1994 16:22:49 +0000
parents 60f711724bc9
children 459bb5807c0b
files src/sysdep.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Tue Feb 15 16:17:25 1994 +0000
+++ b/src/sysdep.c	Tue Feb 15 16:22:49 1994 +0000
@@ -2754,7 +2754,7 @@
 	  if (errno == EINTR)
 	    continue;
 	  else
-	    return (-1);
+	    return (bytes_written ? bytes_written : -1);
 	}
 
       buf += rtnval;