Skip to content

PTY.open unusable because of fcntl error #5004

@byteit101

Description

@byteit101

Environment

  • jruby 9.1.15.0 (2.3.3) 2017-12-07 929fde8 OpenJDK 64-Bit Server VM 25.151-b12 on 1.8.0_151-b12 +jit [linux-x86_64]
  • Multiple linuxes (RHELs & Debian)

MRI

2.3.0 :001 > require 'pty'
 => true 
2.3.0 :002 > PTY.open{|m,s|}
 => nil 

Actual Behavior

jruby-9.1.15.0 :001 > require 'pty'
 => true 
jruby-9.1.15.0 :002 > PTY.open{|m,s|}
NotImplementedError: F_SETFL only supports O_NONBLOCK
	from org/jruby/RubyIO.java:2441:in `fcntl'
	from /home/byteit101/.rvm/rubies/jruby-9.1.15.0/lib/ruby/stdlib/pty.rb:140:in `hack_close_on_exec'
	from /home/byteit101/.rvm/rubies/jruby-9.1.15.0/lib/ruby/stdlib/pty.rb:57:in `block in open'
	from org/jruby/RubyArray.java:1735:in `each'
	from /home/byteit101/.rvm/rubies/jruby-9.1.15.0/lib/ruby/stdlib/pty.rb:54:in `open'
	from (irb):2:in `<eval>'
	from org/jruby/RubyKernel.java:994:in `eval'
	from org/jruby/RubyKernel.java:1292:in `loop'
	from org/jruby/RubyKernel.java:1114:in `catch'
	from org/jruby/RubyKernel.java:1114:in `catch'
	from /home/byteit101/.rvm/rubies/jruby-9.1.15.0/bin/irb:13:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions