Skip to content

Commit 94af48f

Browse files
committedMar 19, 2018
Update cross-thread stream closed message. #4876
See https://bugs.ruby-lang.org/issues/13405
1 parent 83469bd commit 94af48f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/util/io/OpenFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ public void interruptBlockingThreads(ThreadContext context) {
26772677
if (thread == context.getThread()) continue;
26782678

26792679
// raise will also wake the thread from selection
2680-
RubyException exception = (RubyException) runtime.getIOError().newInstance(context, runtime.newString("stream closed"), Block.NULL_BLOCK);
2680+
RubyException exception = (RubyException) runtime.getIOError().newInstance(context, runtime.newString("stream closed in another thread"), Block.NULL_BLOCK);
26812681
thread.raise(Helpers.arrayOf(exception), Block.NULL_BLOCK);
26822682
}
26832683
}

0 commit comments

Comments
 (0)
Please sign in to comment.