Project

General

Profile

Bug #15607

RuntimeError (can't get Master/Slave device) using PTY.open

Added by milo974 (Wesley Mouedine Assaby) about 1 month ago. Updated 20 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-openbsd]
[ruby-core:91569]

Description

Hi

I use OpenBSD 6.4 (amd64) with ruby 2.5.3p105

All code that use PTY module doesn't work, i get RuntimeError(can't get Master/Slave device).

In a console IRB :

require 'pty'
==>true
master, slave = PTY.open
Traceback (most recent call last):
3: from /usr/local/bin/irb:11:in <main>'
2: from (irb):2
1: from (irb):2:in
open'
RuntimeError (can't get Master/Slave device)

I can provide you ssh access to OpenBSD if you need.

Thank you very much.


Files

0001-Fix-PTY.open-on-OpenBSD.patch (948 Bytes) 0001-Fix-PTY.open-on-OpenBSD.patch jeremyevans0 (Jeremy Evans), 02/20/2019 01:25 AM

Associated revisions

Revision a679e98e
Added by naruse (Yui NARUSE) 20 days ago

Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans code@jeremyevans.net

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 67183
Added by naruse (Yui NARUSE) 20 days ago

Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans code@jeremyevans.net

Revision ce5590fc
Added by naruse (Yui NARUSE) 20 days ago

merge revision(s) 67183: [Backport #15607]

    Fix PTY.open on OpenBSD [Bug #15607]

    From: Jeremy Evans <code@jeremyevans.net>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 67184
Added by naruse (Yui NARUSE) 20 days ago

merge revision(s) 67183: [Backport #15607]

Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans <code@jeremyevans.net>

Revision 80266bfb
Added by nagachika (Tomoyuki Chikanaga) 20 days ago

merge revision(s) 67183: [Backport #15607]

    Fix PTY.open on OpenBSD [Bug #15607]

    From: Jeremy Evans <code@jeremyevans.net>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 67186
Added by nagachika (Tomoyuki Chikanaga) 20 days ago

merge revision(s) 67183: [Backport #15607]

Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans <code@jeremyevans.net>

History

Updated by jeremyevans0 (Jeremy Evans) about 1 month ago

Attached is a fix to this issue, by just adding || defined(__OpenBSD__).

The example in the PTY document works correctly with this patch.

#2

Updated by naruse (Yui NARUSE) 20 days ago

  • Status changed from Open to Closed

Applied in changeset trunk|r67183.


Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans code@jeremyevans.net

Updated by naruse (Yui NARUSE) 20 days ago

  • Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE

ruby_2_6 r67184 merged revision(s) 67183.

Updated by nagachika (Tomoyuki Chikanaga) 20 days ago

  • Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE to 2.4: REQUIRED, 2.5: DONE, 2.6: DONE

ruby_2_5 r67186 merged revision(s) 67183.

Also available in: Atom PDF