aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-04-19 17:01:53 +0000
committerTom Tromey <tromey@gcc.gnu.org>2006-04-19 17:01:53 +0000
commit37e7dc121db68d87fb61996219088f0b94680455 (patch)
treebf7dc56d47c2c13752846e57a3e75e625659daa7 /libjava/gnu
parentfa6098f8177ea7e73cfdcc291209cd47d40196ee (diff)
downloadgcc-37e7dc121db68d87fb61996219088f0b94680455.zip
gcc-37e7dc121db68d87fb61996219088f0b94680455.tar.gz
gcc-37e7dc121db68d87fb61996219088f0b94680455.tar.bz2
natFileChannelPosix.cc (write): Properly handle EINTR.
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly handle EINTR. From-SVN: r113082
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/nio/channels/natFileChannelPosix.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
index 24b6396..4851403 100644
--- a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
+++ b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
@@ -1,7 +1,7 @@
// natFileChannelImplPosix.cc - Native part of FileChannelImpl class.
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software Foundation
This file is part of libgcj.
@@ -231,6 +231,7 @@ FileChannelImpl::write (jbyteArray b, jint offset, jint len)
}
if (errno != EINTR)
throw new IOException (JvNewStringLatin1 (strerror (errno)));
+ continue;
}
written += r;