From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id BD5E71F453 for ; Wed, 20 Feb 2019 01:27:54 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B3A761218E1; Wed, 20 Feb 2019 10:27:50 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 792061218D4 for ; Wed, 20 Feb 2019 10:27:48 +0900 (JST) Received: by filter0033p3las1.sendgrid.net with SMTP id filter0033p3las1-476-5C6CAD13-A 2019-02-20 01:27:47.312827201 +0000 UTC m=+1629.130088774 Received: from herokuapp.com (ec2-54-159-238-58.compute-1.amazonaws.com [54.159.238.58]) by ismtpd0039p1iad1.sendgrid.net (SG) with ESMTP id _QKSvxmdR_iuEbO5JvL-EA for ; Wed, 20 Feb 2019 01:27:47.101 +0000 (UTC) Date: Wed, 20 Feb 2019 01:27:48 +0000 (UTC) From: merch-redmine@jeremyevans.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 67048 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15607 X-Redmine-Issue-Author: milo974 X-Redmine-Sender: jeremyevans0 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4Wj76ty9VFFDa2ucYAlAH6NLkQW3+21I/B0h HrXRTrHptUNmtWzZdEhrsGSaLlUlEF1B8pXNaYqtbI1WwiNlmIMkQ/9u5IQ7bI8KecjvM8ktHz2rf7 ZTga1FsEETG5FL7oVmjPi585Jbx1vBy3WOoRwtkRd8diAhn+G6mLPWrcnQ== X-ML-Name: ruby-core X-Mail-Count: 91597 Subject: [ruby-core:91597] [Ruby trunk Bug#15607] RuntimeError (can't get Master/Slave device) using PTY.open X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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 `
' 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/