diff src/sysdep.c @ 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 a5b94cc9cb11
children ce4b18e394a2
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;