GNU bug report logs - #12040
24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)

Previous Next

Package: emacs;

Reported by: Jan Beich <jbeich <at> tormail.org>

Date: Tue, 24 Jul 2012 02:09:02 UTC

Severity: important

Tags: patch

Found in version 24.1.50

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12040: closed (24.1.50; `term' hangs on FreeBSD 10.0-CURRENT
 without pty(4))
Date: Fri, 17 Aug 2012 07:31:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 17 Aug 2012 03:21:49 -0400
with message-id <1f393myodu.fsf <at> fencepost.gnu.org>
and subject line Re: bug#12040: 24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)
has caused the debbugs.gnu.org bug report #12040,
regarding 24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12040: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12040
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jan Beich <jbeich <at> tormail.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)
Date: Mon, 23 Jul 2012 23:31:27 +1200
[Message part 3 (text/plain, inline)]
Starting with FreeBSD 8.0-RELEASE the system uses new tty layer that no
longer supports old style pseudo ttys *unless* pty(4) kernel module is
loaded. However, pty(4) device is still included in GENERIC kernel on
all releases except 10.0-CURRENT (removed in r233271).

  $ emacs -Q
  M-x term
  <hangs here>

  $ sudo kldload pty
  [try again]

A few ways to solve this:
- use openpty() in -lutil like darwin
- add use posix_openpt() support

http://svn.freebsd.org/changeset/base/233271
https://pub.allbsd.org/FreeBSD-snapshots/ # for testing, seems to be down atm

[openpty.diff (text/x-patch, attachment)]
[posix_openpt.diff (text/x-patch, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 12040-done <at> debbugs.gnu.org
Subject: Re: bug#12040: 24.1.50;
	`term' hangs on FreeBSD 10.0-CURRENT without pty(4)
Date: Fri, 17 Aug 2012 03:21:49 -0400
Version: 24.3

Thanks, I'm convinced. I installed the posix_openpt change for freebsd
and netbsd to the trunk, currently expected to be released as 24.3. I
left darwin alone for the time being.


This bug report was last modified 12 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.