--- Begin Message ---
Subject: |
Re: emacs server with X11 build on OSX |
Date: |
Mon, 2 Aug 2010 22:22:05 +0200 |
(I'm Cc:ing this to bug-gnu-emacs to create a bug report.)
On Mon, Aug 2, 2010 at 17:56, Leo <address@hidden> wrote:
>> (make-network-process :name "server" :server t :family nil :service t
>> :host 'local)
> I have used the following in server-start as workaround:
>
> (make-network-process :name "server" :server t :family 'ipv4 :service t)
If ":family 'ipv4" works and ":family nil" does not, that surely means
that Emacs is chosing ipv6. Does server.el work with the attached
patch?
I don't know whether that means that your system is set up only for
ipv6, or that it has both ipv6 and ipv4 and make-network-process is
selecting ipv6 for `localhost'. In any case, server.el / emacsclient.c
are not adapted to ipv6, so forcing ipv4 seems right for the moment
being.
Juanma
=== modified file 'lisp/server.el'
--- lisp/server.el 2010-05-29 23:50:47 +0000
+++ lisp/server.el 2010-08-02 20:16:16 +0000
@@ -564,5 +564,5 @@
;; The other args depend on the kind of socket used.
(if server-use-tcp
- (list :family nil
+ (list :family 'ipv4
:service t
:host (or server-host 'local)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#6781: emacs server with X11 build on OSX |
Date: |
Mon, 27 Sep 2010 14:12:12 +0200 |
On Sat, Sep 25, 2010 at 05:57, YAMAMOTO Mitsuharu
<address@hidden> wrote:
>>>>>> On Wed, 04 Aug 2010 11:25:53 -0400, Chong Yidong <address@hidden> said:
>
>> YAMAMOTO Mitsuharu <address@hidden> writes:
>>> I suspect there is a bug in getaddrinfo on Mac OS X 10.6.4. At
>>> least, the behavior of the following program is incompatible with
>>> that on Mac OS X 10.5.8.
>
>> Could you write a PROBLEMS entry about your discovery?
>
> I think it is more natural to specify NULL for the unspecified port
> case, and it also works as a workaround.
That is another bug. I'm closing this one.
I suggest either commiting your fix, if appropriate, or filing a new
bug report with your patch so it can be discussed.
Juanma
--- End Message ---