🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99334

Two fixes for SunOS4.1/emacs18.55 problems

#99334
From: Barry A. Warsaw
Date: Fri, 28 Sep 1990 16:26
65 lines
3059 bytes
	| 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)".

...and...

	| I am installing GNU EMACS, version 18, on a sun network, running
	| sunos4, with all SPARC stations.  The installation appears to be
	| successful. However, when I attempt to execute emacs, I get the
	| following fatal error: Fatal error (6).Abort.

The fixes for both of these problems have been posted many times. I
really hope they either find their way into 18.56/19.00 or at least a
FAQ posting (if they aren't there already)!  But in the meantime, I
know these are annoying problems, so after my siggy you'll find diffs
which should fix them both.  Note that I didn't write either patch;
credit goes to some kind netfolks who shall remain anonymous (only
because I no longer have the original postings :-).

-Barry


#################### Fatal error (6).Abort. ####################

*** malloc.c.pre4.1	Fri May 25 12:17:26 1990
--- malloc.c	Fri Sep 28 12:18:25 1990
***************
*** 477,481 ****
--- 477,491 ----
       Both the beginning of the header and the beginning of the
       block should be on an eight byte boundary.  */
+ 
+ #ifdef SUNOS_LOCALTIME_BUG
+ 	/* SunOS 4.1 localtime() allocates 8 bytes but scribbles on the
+ 	   ninth byte, so round the number of bytes to malloc to a 16 byte
+ 	   boundary.  Another possible patch is to #define SYSTEM_MALLOC
+ 	   in config.h.  This patch was glommed off the net.
+ 	   25-May-1990 baw */
+   nbytes = (n + ((sizeof *p + 15) & ~15) + EXTRA + 15) & ~15;
+ #else
    nbytes = (n + ((sizeof *p + 7) & ~7) + EXTRA + 7) & ~7;
+ #endif
    {
      register unsigned int   shiftr = (nbytes - 1) >> 2;


#################### Process shell stopped ####################

*** process.c.pre4.1	Fri May 25 12:22:34 1990
--- process.c	Fri Sep 28 12:15:20 1990
***************
*** 1032,1035 ****
--- 1032,1040 ----
  	    ioctl (j, TIOCNOTTY, 0);
  	    close (j);
+ #ifndef USG
+ 	/* This patch was glommed off the net and *seems* to work.
+ 	   25-May-1990 baw */
+ 	    setpgrp (0, 0);
+ #endif /* USG */
  	  }
  #endif /* TIOCNOTTY */
Technical Details
Message-ID: <WARSAW.90Sep28122629@warsaw.nlm.nih.gov>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cme!durer.cme.nist.gov!warsaw
References: <19900827172514.1.BARMAR@OCCAM.THINK.COM> <394@clbull.cl.bull.fr>

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-28 17:53:04 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cme!durer.cme.nist.gov!warsaw
From: warsaw@nlm.nih.gov (Barry A. Warsaw)
Newsgroups: gnu.emacs.bug
Subject: Two fixes for SunOS4.1/emacs18.55 problems
Message-ID: <WARSAW.90Sep28122629@warsaw.nlm.nih.gov>
Date: 28 Sep 90 16:26:29 GMT
References: <19900827172514.1.BARMAR@OCCAM.THINK.COM> <394@clbull.cl.bull.fr>
Sender: news@cme.nist.gov
Distribution: gnu
Organization: Century Computing, Inc.
Lines: 65
Posted: Fri Sep 28 17:26:29 1990
In-reply-to: frasq@cl.bull.fr's message of 18 Sep 90 12:27:20 GMT