diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-06-14 09:36:14 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-06-14 09:36:14 +0000 |
| commit | 597035b4db952a9b58494ae267b969eddd0e05a1 (patch) | |
| tree | b03273578f60e6c33d96edf9723f4098f084a8d2 /lib/libpthread/thread/thr_write.c | |
| parent | a41878a77ac12286e58a46aafb9ed14473ae128b (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_write.c')
| -rw-r--r-- | lib/libpthread/thread/thr_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_write.c b/lib/libpthread/thread/thr_write.c index 97320317346e..7aad66b1328f 100644 --- a/lib/libpthread/thread/thr_write.c +++ b/lib/libpthread/thread/thr_write.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_write.c,v 1.7 1998/06/09 23:21:04 jb Exp $ + * $Id: uthread_write.c,v 1.8 1998/06/10 22:28:45 jb Exp $ * */ #include <sys/types.h> @@ -94,7 +94,7 @@ write(int fd, const void *buf, size_t nbytes) * write: */ if (blocking && ((n < 0 && (errno == EWOULDBLOCK || - errno == EAGAIN)) || num < nbytes)) { + errno == EAGAIN)) || (n >= 0 && num < nbytes))) { _thread_run->data.fd.fd = fd; _thread_kern_set_timeout(NULL); |
