From xemacs-m  Thu Jun  5 15:11:48 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA17632
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 15:11:48 -0500 (CDT)
Received: from Corp.Sun.COM ([129.145.35.78]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id NAA23719 for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 13:30:03 -0700
Received: from legba.Corp.Sun.COM by Corp.Sun.COM (SMI-8.6/SMI-5.3)
	id NAA29913; Thu, 5 Jun 1997 13:12:10 -0700
Received: by legba.Corp.Sun.COM (SMI-8.6/SMI-SVR4)
	id NAA00761; Thu, 5 Jun 1997 13:12:10 -0700
To: xemacs-beta@xemacs.org
Subject: Re: more gnuserv stuff, [possible fix]
References: <bcipvu0oqsm.fsf@corp.Sun.COM>
X-Attribution: GDF
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Gary.Foster@Corp.Sun.COM (Gary D. Foster)
Date: 05 Jun 1997 13:12:09 -0700
In-Reply-To: Gary.Foster@Corp's message of 05 Jun 1997 11:20:09 -0700
Message-ID: <bcid8q0izc6.fsf@corp.Sun.COM>
Lines: 23
X-Mailer: Gnus v5.4.55/XEmacs 20.3(beta3)

Ok, I tried applying Kyle's patch, and restarted XEmacs on the remote
machine, again with gnuserv listening on port 9994.

Then, from my machine, I did the following:

legba:$ gnuclient -h xemhost -p 9994

and got a hung tty as well as hanging xemacs on the remote machine.  I
killed my local process, then when I went back to the remote machine
and put xemacs back in the fg, I got the attached lisp backtrace.
What it looks like *to me* anyways, is that it's trying to make the
frame on the display ":0.0".  It looks like it's inheriting the
display env variable from the calling host, but if the display is set
(as in my case) to something like ":0.0" it blows up.  If I change my
DISPLAY to "legba:0.0" and try it all again it works great.

Seems to me that the fix for this would be to look at the target
display name before trying to make the device, and if it begins with a 
":" prepend the host name of the calling machine.  Does this sound
reasonable?


-- Gary F.

