diff options
author | Tom Tromey <tromey@redhat.com> | 2006-04-19 17:01:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-04-19 17:01:53 +0000 |
commit | 37e7dc121db68d87fb61996219088f0b94680455 (patch) | |
tree | bf7dc56d47c2c13752846e57a3e75e625659daa7 /libjava/gnu/java | |
parent | fa6098f8177ea7e73cfdcc291209cd47d40196ee (diff) | |
download | gcc-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/java')
-rw-r--r-- | libjava/gnu/java/nio/channels/natFileChannelPosix.cc | 3 |
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; |