Project

General

Profile

Actions

Bug #15607

closed

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

Added by milo974 (Wesley Mouedine Assaby) about 5 years ago. Updated about 5 years ago.

Status:
Closed
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

Updated by jeremyevans0 (Jeremy Evans) about 5 years ago

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

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

Actions #2

Updated by naruse (Yui NARUSE) about 5 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r67183.


Fix PTY.open on OpenBSD [Bug #15607]

From: Jeremy Evans

Updated by naruse (Yui NARUSE) about 5 years 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) about 5 years 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0