diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-12-17 16:44:03 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-12-17 16:44:03 +0000 |
| commit | 6512f49fe6e381102eb4909ac9af940760793462 (patch) | |
| tree | 64174cc6051cd71461154ac9ac08466eadfbdaff /lib/libc_r | |
| parent | e768886dfcd303567c4c98d592af312cf5611801 (diff) | |
Notes
Diffstat (limited to 'lib/libc_r')
| -rw-r--r-- | lib/libc_r/uthread/uthread_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_write.c b/lib/libc_r/uthread/uthread_write.c index 123a88e1e3c1..573e78e9e4d5 100644 --- a/lib/libc_r/uthread/uthread_write.c +++ b/lib/libc_r/uthread/uthread_write.c @@ -138,6 +138,8 @@ _write(int fd, const void *buf, size_t nbytes) ret = num; else ret = n; + if (n == 0) + break; /* Check if the write has completed: */ } else if (num >= nbytes) |
