diff options
Diffstat (limited to 'src')
| -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) | |||
| 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; |