[comp.windows.x] GNU Emacs on HP-UX with X-windows?

malcolm@keilir.UUCP (08/31/87)

Has anyone got EMACS to use X-windows on HP-UX?  I have just tried,
with v18.41 of Emacs, on an HP9000/320, but failed since the X-window
support seems to require SIGIO (which doesn't work on HP-UX).  Just
turning off the SIGIO code resulted in emacs crashing on a select()
somewhere.  Have I missed something, or is it impossible?

-- 

Malcolm Cohen			       mcvax!keilir!malcolm
Utgardar, Computer Centre, University of Iceland, Reykjavik
-----------------------------------------------------------

tw@hpcea.CE.HP.COM (Tw Cook) (09/05/87)

Malcolm Cohen writes:

    Has anyone got EMACS to use X-windows on HP-UX?  I have just tried,
    with v18.41 of Emacs, on an HP9000/320, but failed since the X-window
    support seems to require SIGIO (which doesn't work on HP-UX).  Just
    turning off the SIGIO code resulted in emacs crashing on a select()
    somewhere.  Have I missed something, or is it impossible?

It can be done.  In process.c, try making this change around the
select in question; I'm not sure why this is necessary, but it seems
to fix the problem.  I don't believe there were any other major
problems, but it has been some time since I played with it.  You'll
probably find that without SIGIO it is rather sluggish on the 320, if
so, you might want to experiment with using "rtprio" on both emacs and
your X server.

Good luck,
Tw Cook			{hplabs, hpfcla}!hpcea!tw or twcook@hplabs.HP.COM
415-857-4916		HP Corporate Engineering - Palo Alto, CA

---- excerpt from process.c: ----------------------------------------

      if (read_kbd && kbd_count)
        nfds = 0;
      else
#ifdef HPUX
        nfds = select (MAXDESC, &Available, 0, 0, &timeout);
#else
        nfds = select (MAXDESC, &Available, 0, &Exception, &timeout);
#endif
      xerrno = errno;

      if (fix_screen_hook)
        (*fix_screen_hook) ();



   ...