Skip to content

Use close_on_exec method instead of using fcntl calls for pty. Fixes #5663#5677

Merged
enebo merged 1 commit intojruby:masterfrom
byteit101:master
Apr 5, 2019
Merged

Use close_on_exec method instead of using fcntl calls for pty. Fixes #5663#5677
enebo merged 1 commit intojruby:masterfrom
byteit101:master

Conversation

@byteit101
Copy link
Member

@byteit101 byteit101 commented Apr 4, 2019

Fix as suggested in #5663. Provides same behavior as MRI now.

Additionally, I ran this test: jruby -r ./test/mri/lib/envutil.rb test/mri/test_pty.rb and it passed. I wasn't sure if I needed to to anything else, or why https://github.com/jruby/jruby/blob/master/test/mri/excludes/TestPTY.rb suggests that it should fail.

This also doesn't address the opposite behavior of the nonblock flag as I noted in #5663

Resolves #5663

@kares kares added this to the JRuby 9.2.7.0 milestone Apr 4, 2019
@enebo enebo merged commit ec40f37 into jruby:master Apr 5, 2019
@headius
Copy link
Member

headius commented Apr 6, 2019

👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants