diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index bdbdefabb64..bc2ac451c9d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3185,6 +3185,8 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, | |||
| 3185 | xerrno = errno; | 3185 | xerrno = errno; |
| 3186 | emacs_close (s); | 3186 | emacs_close (s); |
| 3187 | s = -1; | 3187 | s = -1; |
| 3188 | if (socket_to_use < 0) | ||
| 3189 | break; | ||
| 3188 | continue; | 3190 | continue; |
| 3189 | } | 3191 | } |
| 3190 | } | 3192 | } |
| @@ -3312,6 +3314,8 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, | |||
| 3312 | specpdl_ptr = specpdl + count1; | 3314 | specpdl_ptr = specpdl + count1; |
| 3313 | emacs_close (s); | 3315 | emacs_close (s); |
| 3314 | s = -1; | 3316 | s = -1; |
| 3317 | if (socket_to_use < 0) | ||
| 3318 | break; | ||
| 3315 | 3319 | ||
| 3316 | #ifdef WINDOWSNT | 3320 | #ifdef WINDOWSNT |
| 3317 | if (xerrno == EINTR) | 3321 | if (xerrno == EINTR) |