[comp.windows.x] HP X windows GNU emacs problem

dpb@viking.UUCP (09/16/88)

> then the HP kernel immediately panics.  Has anyone else observed 
> this interesting behavior?

Is your hostname set to unix:0?
When you run emacs, connect to the server via hostname:0 rather than
unix:0.  The problem is that unix domain sockets are currently 
unsupported but are used by Xlib when your DISPLAY variable is 
unix:0.  Unfortunately, the kernel panics if you do a bogus ioctl
on the file descriptor you get back.  At least so I hear.

Also, unless you get the compiler fix, you need to build your
emacs with SHORT_CAST_BUG defined.

Appended is the function I use to start up emacs on the HP system.

   Don Bennett           (408)433-3311
   dpb%frame@sun.com      or, sun!frame!dpb
   Frame Technology

# GNU 18.51 causes 6.2 to panic it we let it use unix domain sockets!
# (with X11 support)

function emacs {
    echo $DISPLAY | grep 'unix:0' > /dev/null
    if [ $? -eq 0 ]
    then
        myHost=`hostname`
        newDisp=`echo $DISPLAY | sed "s/unix/$myHost/"`
        DISPLAY=$newDisp daemon /usr/local/bin/emacs/emacs $*
    else
        /usr/local/bin/emacs/emacs $*
    fi
}