Skip to content

Commit

Permalink
[Truffle] Fix standard stream check location in IO#close.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed May 14, 2015
1 parent a7cf015 commit 5a87b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/closed_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ public int close(VirtualFrame frame, RubyBasicObject io) {
return 0;
}

rubyWithSelf(frame, io, "@descriptor = -1");

if (fd < 3) {
return 0;
}

rubyWithSelf(frame, io, "@descriptor = -1");

final int result = posix().close(fd);

// TODO BJF 13-May-2015 Implement more error handling from Rubinius
Expand Down

0 comments on commit 5a87b02

Please sign in to comment.