From 37e7dc121db68d87fb61996219088f0b94680455 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 19 Apr 2006 17:01:53 +0000 Subject: [PATCH] natFileChannelPosix.cc (write): Properly handle EINTR. * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly handle EINTR. From-SVN: r113082 --- libjava/ChangeLog | 5 +++++ libjava/gnu/java/nio/channels/natFileChannelPosix.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8437c1a1697..026afd659b0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2006-04-19 Tom Tromey + + * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly + handle EINTR. + 2006-04-17 Tom Tromey PR libgcj/27171: 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;