Bug #15607
closedRuntimeError (can't get Master/Slave device) using PTY.open
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
Updated by jeremyevans0 (Jeremy Evans) about 6 years ago
- File 0001-Fix-PTY.open-on-OpenBSD.patch 0001-Fix-PTY.open-on-OpenBSD.patch added
- Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED
Attached is a fix to this issue, by just adding || defined(__OpenBSD__)
.
The example in the PTY document works correctly with this patch.
Updated by naruse (Yui NARUSE) about 6 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r67183.
Fix PTY.open on OpenBSD [Bug #15607]
From: Jeremy Evans [email protected]
Updated by naruse (Yui NARUSE) about 6 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 6 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.