diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-19 17:01:53 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-19 17:01:53 +0000 |
commit | e36ed55bfeee9ad9e411290c10ce2b3a0d459956 (patch) | |
tree | bf7dc56d47c2c13752846e57a3e75e625659daa7 /libjava/gnu/java | |
parent | 197c9df7c17dae7b427a1c91d476ebbccb3bc562 (diff) | |
download | gcc-e36ed55bfeee9ad9e411290c10ce2b3a0d459956.tar.gz |
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113082 138bc75d-0d04-0410-961f-82ee72b054a4
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 24b6396c66c..4851403a8db 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; |