diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c index 8629f834e79..676f38446e4 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3578,17 +3578,23 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, | |||
| 3578 | 3578 | ||
| 3579 | if (s < 0) | 3579 | if (s < 0) |
| 3580 | { | 3580 | { |
| 3581 | const char *err = (p->is_server | ||
| 3582 | ? "make server process failed" | ||
| 3583 | : "make client process failed"); | ||
| 3584 | |||
| 3581 | /* If non-blocking got this far - and failed - assume non-blocking is | 3585 | /* If non-blocking got this far - and failed - assume non-blocking is |
| 3582 | not supported after all. This is probably a wrong assumption, but | 3586 | not supported after all. This is probably a wrong assumption, but |
| 3583 | the normal blocking calls to open-network-stream handles this error | 3587 | the normal blocking calls to open-network-stream handles this error |
| 3584 | better. */ | 3588 | better. */ |
| 3585 | if (p->is_non_blocking_client) | 3589 | if (p->is_non_blocking_client) |
| 3586 | return; | 3590 | { |
| 3591 | Lisp_Object data = get_file_errno_data (err, contact, xerrno); | ||
| 3592 | |||
| 3593 | pset_status (p, list2 (Fcar (data), Fcdr (data))); | ||
| 3594 | return; | ||
| 3595 | } | ||
| 3587 | 3596 | ||
| 3588 | report_file_errno ((p->is_server | 3597 | report_file_errno (err, contact, xerrno); |
| 3589 | ? "make server process failed" | ||
| 3590 | : "make client process failed"), | ||
| 3591 | contact, xerrno); | ||
| 3592 | } | 3598 | } |
| 3593 | 3599 | ||
| 3594 | inch = s; | 3600 | inch = s; |