Article View: gnu.emacs.help
Article #189847shell-mode, csh, SunOS 4.1, and X11R4
From: Steve Turner
Date: Wed, 24 Oct 1990 22:15
Date: Wed, 24 Oct 1990 22:15
55 lines
3034 bytes
3034 bytes
We have recently upgraded to SunOS 4.1. Now, when running emacs under
X (with HAVE_X_WINDOWS defined) an attempt to start up a shell buffer
with csh as the shell hangs with:
"Process shell stopped (tty input)."
I have tried this with the shell.el that comes with emacs, with a
multi-shell version that I snarfed from the net, with vanilla emacs
version 18.55 (with X support), and with epoch version 3.2beta. All
fail in the same manner. Working via a glass tty has not caused the
problem. Emacs invoked under an xterm without X support works fine as
well.
If the explicit-shell-file-name is set to "/bin/sh" this does not
happen. Also if /bin/csh is invoked with -c (by 'compile for example)
then it works fine as well. The stopped shells show up like:
23964 ? TW 0:00 -bin/csh -i (csh)
in a `ps x`.
One of our local guru's had this to say:
> From: bruner@csrd.uiuc.edu (John Bruner)
> Subject: Re: emacs under X and /bin/csh
>
> This sounds like a problem with process groups. I believe that the
> process group code changed in SunOS 4.1 in order to more closely
> conform to the System V Interface Definition. It sounds like emacs
> may not be establishing the controlling terminal of its subshells,
> perhaps because it doesn't correctly dissociate itself with the
> original controlling terminal (the pty from which the "emacs-X"
> process was started).
>
> When "csh" is run interactively it tries to put itself into its own
> process group, change the process group of its controlling terminal to
> be its own pgrp, and then it reads from it. If it fails to change the
> process group the read will generate a SIGTTIN (tty input stop).
>
> "sh" and "csh -c" do not use job control.
>
Is this a "known" problem with 18.55? My apologies in advance if this
has been discussed here before - I haven't been reading this group
recently. I will resubscribe, so either email or post of a solution
would be greatly appreciated.
--
Steve Turner (on the Si prairie - UIUC CSRD)
ARPANET: turner@csrd.uiuc.edu
Phone: (217) 244-7293 or (217) 367-0882
I went walking in the wasted city / Started thinking about entropy
Smelled the wind from the ruined river / Went home to watch TV
-- Warren Zevon
Technical Details
Message-ID:
<TURNER.90Oct24171501@sp1.csrd.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!att!iuvax!ux1.cso.uiuc.edu!csrd.uiuc.edu!s4.csrd.uiuc.edu!turnerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,4d49c6703eda105f,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-10-24 15:15:01 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!att!iuvax!ux1.cso.uiuc.edu!csrd.uiuc.edu!s4.csrd.uiuc.edu!turner From: turner@sp1.csrd.uiuc.edu (Steve Turner) Newsgroups: gnu.emacs.help Subject: shell-mode, csh, SunOS 4.1, and X11R4 Message-ID: <TURNER.90Oct24171501@sp1.csrd.uiuc.edu> Date: 24 Oct 90 22:15:01 GMT Sender: news@csrd.uiuc.edu (news) Reply-To: turner@csrd.uiuc.edu (Steve Turner) Distribution: gnu Organization: Center for Supercomputing R & D Lines: 55 Posted: Wed Oct 24 23:15:01 1990