natFileChannelPosix.cc (write): Properly handle EINTR.
authorTom Tromey <tromey@redhat.com>
Wed, 19 Apr 2006 17:01:53 +0000 (17:01 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 19 Apr 2006 17:01:53 +0000 (17:01 +0000)
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.

From-SVN: r113082

libjava/ChangeLog
libjava/gnu/java/nio/channels/natFileChannelPosix.cc

index 8437c1a1697572cc40b4a4530f7baf3eb4af5a6e..026afd659b0a3dca7c68ffba2980cfa2bea1b082 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-19  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
+       handle EINTR.
+
 2006-04-17  Tom Tromey  <tromey@redhat.com>
 
        PR libgcj/27171:
index 24b6396c66c696da02c45bf168b6ecd21da1c04d..4851403a8db4171dd2648f01ee0ebb6b620d0ad4 100644 (file)
@@ -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;