Skip to content

Commit

Permalink
[Truffle] Add FD_CLOEXEC to configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed May 15, 2015
1 parent e4ac055 commit 83dbfee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 0 additions & 9 deletions spec/truffle/tags/core/io/close_on_exec_tags.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
fails:IO#close_on_exec= sets the close-on-exec flag if true
fails:IO#close_on_exec= sets the close-on-exec flag if non-false
fails:IO#close_on_exec= unsets the close-on-exec flag if false
fails:IO#close_on_exec= unsets the close-on-exec flag if nil
fails:IO#close_on_exec= ensures the IO's file descriptor is closed in exec'ed processes
fails:IO#close_on_exec= raises IOError if called on a closed IO
fails:IO#close_on_exec= returns nil
fails:IO#close_on_exec? returns true by default
fails:IO#close_on_exec? returns true if set
fails:IO#close_on_exec? raises IOError if called on a closed IO
fails(windows):IO#close_on_exec= returns false from #respond_to?
fails(windows):IO#close_on_exec= raises a NotImplementedError when called
fails(windows):IO#close_on_exec? returns false from #respond_to?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public RubiniusConfiguration(RubyContext context) {
}
}

config("rbx.platform.fcntl.FD_CLOEXEC", 1); // TODO BJF 15-May-2015 Get from JNR constants or stdlib FFI

for (OpenFlags openFlag : OpenFlags.values()) {
if (openFlag.name().startsWith("O_")) {
config("rbx.platform.file." + openFlag.name(), openFlag.intValue());
Expand Down

0 comments on commit 83dbfee

Please sign in to comment.