Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Kernel#gets should try harder to get a line.
  • Loading branch information
eregon committed Feb 4, 2015
1 parent dcc29bf commit 8b64d4f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -851,7 +851,7 @@ public RubyString gets(VirtualFrame frame) {

final BufferedReader reader = new BufferedReader(new InputStreamReader(in));

final String line = getContext().getThreadManager().runOnce(new BlockingActionWithoutGlobalLock<String>() {
final String line = getContext().getThreadManager().runUntilResult(new BlockingActionWithoutGlobalLock<String>() {
@Override
public String block() throws InterruptedException {
return gets(reader);
Expand Down

0 comments on commit 8b64d4f

Please sign in to comment.