From: merch-redmine@...
Date: 2019-02-20T01:27:48+00:00
Subject: [ruby-core:91597] [Ruby trunk Bug#15607] RuntimeError (can't get Master/Slave device) using PTY.open

Issue #15607 has been updated by jeremyevans0 (Jeremy Evans).

Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED
File 0001-Fix-PTY.open-on-OpenBSD.patch added

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

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

----------------------------------------
Bug #15607: RuntimeError (can't get Master/Slave device) using PTY.open
https://bugs.ruby-lang.org/issues/15607#change-76859

* Author: milo974 (Wesley Mouedine Assaby)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-openbsd]
* Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED
----------------------------------------
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)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>