diff options
| author | Evgeny Fraimovitch | 2015-08-02 17:48:42 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-02 17:48:42 +0300 |
| commit | c6a626ebac9827f23f87ab1774609b35c3046f57 (patch) | |
| tree | b0aa7be0ebb4efb0d78b48db51178231359cbba9 /lib-src | |
| parent | 0afb8fab99951262e81d6095302de4c84d7e8847 (diff) | |
| download | emacs-c6a626ebac9827f23f87ab1774609b35c3046f57.tar.gz emacs-c6a626ebac9827f23f87ab1774609b35c3046f57.zip | |
Don't abort emacsclientw when -a was specified
* lib-src/emacsclient.c (set_tcp_socket) [WINDOWSNT]: Don't error
out if we are in emacsclientw and -a was specified.
Copyright-paperwork-exempt: yes
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 357ebc736ab..44262400504 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -961,6 +961,13 @@ set_tcp_socket (const char *local_server_file) | |||
| 961 | /* Open up an AF_INET socket. */ | 961 | /* Open up an AF_INET socket. */ |
| 962 | if ((s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) | 962 | if ((s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) |
| 963 | { | 963 | { |
| 964 | /* Since we have an alternate to try out, this is not an error | ||
| 965 | yet; popping out a modal dialog at this stage would make -a | ||
| 966 | option totally useless for emacsclientw -- the user will | ||
| 967 | still get an error message if the alternate editor fails. */ | ||
| 968 | #ifdef WINDOWSNT | ||
| 969 | if(!(w32_window_app () && alternate_editor)) | ||
| 970 | #endif | ||
| 964 | sock_err_message ("socket"); | 971 | sock_err_message ("socket"); |
| 965 | return INVALID_SOCKET; | 972 | return INVALID_SOCKET; |
| 966 | } | 973 | } |
| @@ -968,6 +975,9 @@ set_tcp_socket (const char *local_server_file) | |||
| 968 | /* Set up the socket. */ | 975 | /* Set up the socket. */ |
| 969 | if (connect (s, (struct sockaddr *) &server, sizeof server) < 0) | 976 | if (connect (s, (struct sockaddr *) &server, sizeof server) < 0) |
| 970 | { | 977 | { |
| 978 | #ifdef WINDOWSNT | ||
| 979 | if(!(w32_window_app () && alternate_editor)) | ||
| 980 | #endif | ||
| 971 | sock_err_message ("connect"); | 981 | sock_err_message ("connect"); |
| 972 | return INVALID_SOCKET; | 982 | return INVALID_SOCKET; |
| 973 | } | 983 | } |