diff options
| author | Lars Ingebrigtsen | 2016-01-30 04:34:48 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-01-30 04:34:48 +0100 |
| commit | e5b2f25f3560eb6b590de8391b6a71c2178ff591 (patch) | |
| tree | 2fc956f97e9f773e8e6e56f227eec9259fd6b78b /src | |
| parent | e99dc4a7490a471cbdf421c8b712d8c09479e592 (diff) | |
| download | emacs-e5b2f25f3560eb6b590de8391b6a71c2178ff591.tar.gz emacs-e5b2f25f3560eb6b590de8391b6a71c2178ff591.zip | |
Save correct server data
* process.c (connect_network_socket): Save the correct contact
info for servers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index aef74d3d474..06fb6858785 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3218,7 +3218,7 @@ void connect_network_socket (Lisp_Object proc, Lisp_Object ip_addresses) | |||
| 3218 | } | 3218 | } |
| 3219 | #endif | 3219 | #endif |
| 3220 | 3220 | ||
| 3221 | contact = Fplist_put (contact, p->is_server? QCremote: QClocal, | 3221 | contact = Fplist_put (contact, p->is_server? QClocal: QCremote, |
| 3222 | conv_sockaddr_to_lisp (sa, addrlen)); | 3222 | conv_sockaddr_to_lisp (sa, addrlen)); |
| 3223 | #ifdef HAVE_GETSOCKNAME | 3223 | #ifdef HAVE_GETSOCKNAME |
| 3224 | if (!p->is_server) | 3224 | if (!p->is_server) |
| @@ -3577,7 +3577,8 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3577 | { | 3577 | { |
| 3578 | /* The "connection" function gets it bind info from the address we're | 3578 | /* The "connection" function gets it bind info from the address we're |
| 3579 | given, so use this dummy address if nothing is specified. */ | 3579 | given, so use this dummy address if nothing is specified. */ |
| 3580 | host = build_string ("127.0.0.1"); | 3580 | if (family != AF_LOCAL) |
| 3581 | host = build_string ("127.0.0.1"); | ||
| 3581 | } | 3582 | } |
| 3582 | else | 3583 | else |
| 3583 | { | 3584 | { |