changeset 9687 | e41f9c6d9c0d |
parent 5506 | 202f599c92aa |
child 11909 | a1a7165ac1fa |
--- a/jdk/src/share/classes/sun/nio/ch/NativeThreadSet.java Tue May 10 12:14:07 2011 -0700 +++ b/jdk/src/share/classes/sun/nio/ch/NativeThreadSet.java Wed May 11 14:57:17 2011 +0100 @@ -96,11 +96,16 @@ break; } waitingToEmpty = true; + boolean interrupted = false; while (used > 0) { try { wait(); - } catch (InterruptedException ignore) { } + } catch (InterruptedException e) { + interrupted = true; + } } + if (interrupted) + Thread.currentThread().interrupt(); } } }