From xemacs-m  Fri May 16 15:20:12 1997
Received: from gwa.ericsson.com (gwa.ericsson.com [198.215.127.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA22573
	for <xemacs-beta@xemacs.org>; Fri, 16 May 1997 15:20:10 -0500 (CDT)
Received: from mr1.exu.ericsson.se (mr1.exu.ericsson.com [138.85.147.11]) by gwa.ericsson.com (8.8.2/8.8.2) with ESMTP id PAA13398; Fri, 16 May 1997 15:04:36 -0500 (CDT)
Received: from screamer.rtp.ericsson.se (screamer.rtp.ericsson.se [147.117.133.13]) by mr1.exu.ericsson.se (8.7.1/NAHUB-MR1.1) with SMTP id PAA26405; Fri, 16 May 1997 15:04:35 -0500 (CDT)
Received: from rcur (rcur18.rtp.ericsson.se [147.117.133.138]) by screamer.rtp.ericsson.se (8.6.12/8.6.4) with ESMTP id QAA16619; Fri, 16 May 1997 16:04:29 -0400
To: Hrvoje Niksic <hniksic@srce.hr>
cc: XEmacs Developers <xemacs-beta@xemacs.org>
References: <kigraf98lem.fsf@jagor.srce.hr> <27603.863800390@rtp.ericsson.se>  <kiglo5f70rz.fsf@jagor.srce.hr> 
Subject: Re: More than one gnuserv process? Re: gnuserv.el 3.1 
In-reply-to: (Your message of 16 May 1997 20:02:56 +0200.)
             <kiglo5f70rz.fsf@jagor.srce.hr> 
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: Fri, 16 May 1997 16:04:28 -0400
Message-ID: <2535.863813068@rtp.ericsson.se>
From: Raymond Toy <toy@rtp.ericsson.se>

>>>>> "Hrv" == Hrvoje Niksic <hniksic@srce.hr> writes:


    Hrv> Raymond Toy <toy@rtp.ericsson.se> writes:
    >> I'm starting to use it more and more, especially from home.
    >> However, it seems that there can only be one XEmacs running
    >> gnuserv.

    Hrv> That's because gnuserv uses internet ports by default, and
    Hrv> two processes cannot share a port.  Set the `GNU_PORT'
    Hrv> environment variable to another port, and it will work (don't
    Hrv> forget to set it in both XEmacs and the client shell).

Well, I was hoping for something more automatic because I sometimes
kill and restart these XEmacs processes from fvwm.  Plus, what do I do 
if I want to have more than normal?

Is it possible for XEmacs to notice that a port is already in use and
then to use a different one?  Perhaps XEmacs could use port
xxxx0+10*uid+k where xxxx0 is some default base port, uid is the uid,
and k lets me have upto 10 simultaneous XEmacs sessions with gnuserv
on each.

If this is possible, I'm volunteering (gasp!) to make the necessary
changes to allow this (unless someone more skilled beats me to it).
I'll need some pointers on getting these ports, though.  Never used
sockets before.

Ray

