🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87201

emacs 19.27 sunos 4.1.3 tty output won't work from script

#87201
From: Richard Sharman
Date: Mon, 03 Oct 1994 14:39
35 lines
2184 bytes
(If you received an earlier mail with the same subject line please
ignore it; it wasn't supposed to be sent.)

In GNU Emacs 19.27.3 (sparc-sun-sunos4.1.3, X toolkit) of Sun Oct  2 1994 on sharman

We have many tools encapsulated in shell scripts to log usages.  (For
new emacs version we also change EMACSLOADPATH and INFOPATH, too.)

When I upgraded from 19.25 to 19.27 emacs won't work if invoked from a
script, but does if called directly from the shell.  This is only true
if output is to a tty - if using X windows it works fine.

Attaching to it with gdb showed it had received a SIGTTOU from the
ioctl in emacs_get_tty line 942 (after the comment starting "I give
up").  I tried changing src/s/sun line 8 - replacing the #if 0 with
#if 1 to enable HAVE_TERMIOS but that didn't help, it merely stopped
#at the ioctl on line 922 I believe.

I added
   signal(SIGTTOU,  SIG_IGN)     ;
in emacs.c and that made output appear; I got the initial output but
wasn't able to type in anything.  Attaching with gdb showed it was now
getting a SIGTTIN in read called from wait_reading_process_input 
from process.c line 2064.


I tried to see if not setting the process group had any effect, but I
didn't get anywhere with this.  Any suggestions would be gratefully
received!  (The shell script was standard /bin/sh;  I also tried using
a zsh script but it made no difference.)

I did the same upgrade at home on Linux, and the problem does not occur.

Thanks.
Richard.
Technical Details
Message-ID: <9410020529.AA22798@Software.Mitel.COM>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!software.mitel.COM!Richard_Sharman

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,c16f97bd20129139,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-10-03 18:04:48 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!software.mitel.COM!Richard_Sharman
From: Richard_Sharman@software.mitel.COM (Richard Sharman)
Newsgroups: gnu.emacs.bug
Subject: emacs 19.27 sunos 4.1.3 tty output won't work from script
Date: 3 Oct 1994 10:39:18 -0400
Organization: GNUs Not Usenet
Lines: 35
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9410020529.AA22798@Software.Mitel.COM>