🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99380

Re: Shell mode in SunOS 4.1

#99380
From: Eric-Gilles Companie
Date: Tue, 18 Sep 1990 12:27
37 lines
2496 bytes
In article <19900827172514.1.BARMAR@OCCAM.THINK.COM>, barmar@THINK.COM
(Barry Margolin) writes:
|>In GNU Emacs 18.55.15, built under SunOS 4.0.3 (or maybe 4.0) but
|>running on a Sun-4/280 running SunOS 4.1....
|>
|>If I use "m-x shell" in an Emacs process that doesn't have a controlling
|>terminal (for instance, an X windows Emacs started from "rsh") the shell
|>process doesn't get a controlling terminal, and stops immediately with
|>"Process shell stopped (tty input)".  I suspect this is due to SunOS
|>4.1's switch from BSD-style to POSIX-style controlling terminal
|>association.  However, the release manual (p.53-54) claims that most of
|>the canonical ways of getting a controlling terminal are still
|>supported.
|>
|>Will recompiling Emacs in 4.1 fix it automatically, or are code changes
|>necessary?  Is this a bug in Sun's supposed back-compatibility?
|>
|>                                                barmar
                

Same thing happened to us right after we upgraded our SUN4/280 and its
SUN3/60s from 4.0.3 to 4.1. The shell is stopped when 'xemacs' is
started from twm or one's '~/.xsession' by 'xdm'. Works fine when
started from 'xterm'. I asked keith@expo.lcs.mit.edu, here is his answer :

>This is almost certainly a bug in emacs - it is attempting to set up the
>*shell* buffer using the terminal settings inherited from emacs when it
>started, by invoking ioctl on stdin.  When the controlling terminal isn't
>currently controlled by the process invoking ioctl, it blocks "stopped (tty
>input)".  Emacs started from twm or .xsession isn't supposed to have a
>controlling terminal.  Under SunOS 4.1, it looks like this is not quite the
>case; I'd bet that all of these processes are inheriting /dev/console as the
>controlling terminal.

>You'll need to fix emacs.

Ok let's fix emacs!
Technical Details
Message-ID: <394@clbull.cl.bull.fr>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!cl.bull.fr!frasq
References: <19900827172514.1.BARMAR@OCCAM.THINK.COM>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,8689e0acc7df90f6
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-09-18 05:27:20 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!cl.bull.fr!frasq
From: frasq@cl.bull.fr (Eric-Gilles Companie)
Newsgroups: gnu.emacs.bug
Subject: Re: Shell mode in SunOS 4.1
Message-ID: <394@clbull.cl.bull.fr>
Date: 18 Sep 90 12:27:20 GMT
References: <19900827172514.1.BARMAR@OCCAM.THINK.COM>
Sender: news@clbull.cl.bull.fr
Reply-To: frasq@cl.bull.fr (Eric-Gilles Companie)
Distribution: gnu
Lines: 37
Posted: Tue Sep 18 13:27:20 1990