[gnu.emacs.bug] X11 interface broken on Sequent

heiser@iis.UUCP (Gernot Heiser) (06/14/89)

I recently compiled emacs version 18.54 on a Sequent Symmetry running DYNIX
V3.0.12.

src/config.h #includes "s-bsd4-2.h" and "m-sequent.h" and defines
HAVE_X_WINDOWS, X11, HAVE_X_MENU, AMPERSAND_FULL_NAME and MAINTAIN_ENVIRONMENT
(besides the standard stuff).

I'm working from a Sun and start a window on the Sequent using
	rcmd badile /usr/bin/X11/xterm -display `hostname`:0.0
On the sequent the environment TERM is set to "xterms" and DISPLAY to
"scesaplana:0.0" (scesaplana being the name of my sun).

When I now in the Sequent window type "emacs -nw" emacs starts up ok and seems
to perform allright. However, when I just do "emacs &" emacs opens a window,
loads .emacs and then just sits there totally unresponsive, not even the cursor
box fills when moving the mouse inside the emacs window. When typing to the
window the process after a while exits with a status of 1 after displaying
the message:
"XIO:  fatal IO error 50 (Network is down) on X server "scesaplana:0.0"
      after 25923 requests (41 known processed) with 0 events remaining."

Note that the network is ok, for example I can run "xcalc &" and it opens its
window on my screen and operates perfectly normal.

This strange behaviour I observed already with version 18.53, which is the
first one I compiled for X11 on the Sequent. 
-- 
Gernot Heiser                   Phone:       +41 1/256 23 48
Integrated Systems Laboratory   CSNET/ARPA:  heiser%iis.ethz.ch@relay.cs.net
ETH Zuerich                     UUCP (new):  heiser@iis.uucp
CH-8092 Zuerich, Switzerland    UUCP (old):  {uunet,mcvax,...}!iis!heiser

jw@sics.se (Johan Widen) (06/28/89)

|I recently compiled emacs version 18.54 on a Sequent Symmetry running DYNIX
|V3.0.12.

|When I now in the Sequent window type "emacs -nw" emacs starts up ok and seems
|to perform allright. However, when I just do "emacs &" emacs opens a window,
|loads .emacs and then just sits there totally unresponsive, not even the cursor
|box fills when moving the mouse inside the emacs window. When typing to the
|window the process after a while exits with a status of 1 after displaying
|the message:
|"XIO:  fatal IO error 50 (Network is down) on X server "scesaplana:0.0"
|      after 25923 requests (41 known processed) with 0 events remaining."

I had the same experience. The following patch to m-symmetry.h (or m-sequent.h)
makes the problem go away:

*** m-symmetry.h~	Fri Mar 10 19:04:33 1989
--- m-symmetry.h	Tue Jun 27 19:08:00 1989
***************
*** 153,155
    sprintf (ptyname, "/dev/tty%c%c", PTY_MAJOR[ma], PTY_MINOR[mi]);
  
  #define STACK_DIRECTION -1

--- 153,157 -----
    sprintf (ptyname, "/dev/tty%c%c", PTY_MAJOR[ma], PTY_MINOR[mi]);
  
  #define STACK_DIRECTION -1
+ 
+ #undef SIGIO
--
Johan Widen
SICS, PO Box 1263, S-164 28 KISTA, SWEDEN	Internet: jw@sics.se
Tel: +46 8 752 15 32	Ttx: 812 61 54 SICS S	Fax: +46 8 751 72 30