mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-11 05:23:55 +08:00
* java/nat/natPlainSocketImpl.cc (write): Abort loop on error.
From-SVN: r51230
This commit is contained in:
parent
bbaa9790f3
commit
a641514dc5
@ -1,3 +1,7 @@
|
||||
2002-03-23 Jeff Sturm <jsturm@one-point.com>
|
||||
|
||||
* java/nat/natPlainSocketImpl.cc (write): Abort loop on error.
|
||||
|
||||
2002-03-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use write_barrier,
|
||||
|
@ -450,6 +450,7 @@ java::net::PlainSocketImpl::write(jint b)
|
||||
// Some errors should not cause exceptions.
|
||||
if (errno != ENOTCONN && errno != ECONNRESET && errno != EBADF)
|
||||
throw new java::io::IOException (JvNewStringUTF (strerror (errno)));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -481,6 +482,7 @@ java::net::PlainSocketImpl::write(jbyteArray b, jint offset, jint len)
|
||||
// Some errors should not cause exceptions.
|
||||
if (errno != ENOTCONN && errno != ECONNRESET && errno != EBADF)
|
||||
throw new java::io::IOException (JvNewStringUTF (strerror (errno)));
|
||||
break;
|
||||
}
|
||||
written += r;
|
||||
len -= r;
|
||||
|
Loading…
Reference in New Issue
Block a user