aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorStephen Gildea2018-07-31 22:34:35 -0700
committerStephen Gildea2018-07-31 22:34:35 -0700
commit1804fece02691798394c9e9bd519cd4a53776018 (patch)
tree9d5d441db29404f04417332be3507ba968eec42f /src/process.c
parent17205d361795eaaa8e09ae62875c7439bb57a078 (diff)
parent82d6416a28dc5b4ab65b8081f035679bec4e3604 (diff)
downloademacs-1804fece02691798394c9e9bd519cd4a53776018.tar.gz
emacs-1804fece02691798394c9e9bd519cd4a53776018.zip
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c
index 3fccd962da6..aafb46c3615 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3587,17 +3587,23 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos,
3587 3587
3588 if (s < 0) 3588 if (s < 0)
3589 { 3589 {
3590 const char *err = (p->is_server
3591 ? "make server process failed"
3592 : "make client process failed");
3593
3590 /* If non-blocking got this far - and failed - assume non-blocking is 3594 /* If non-blocking got this far - and failed - assume non-blocking is
3591 not supported after all. This is probably a wrong assumption, but 3595 not supported after all. This is probably a wrong assumption, but
3592 the normal blocking calls to open-network-stream handles this error 3596 the normal blocking calls to open-network-stream handles this error
3593 better. */ 3597 better. */
3594 if (p->is_non_blocking_client) 3598 if (p->is_non_blocking_client)
3595 return; 3599 {
3600 Lisp_Object data = get_file_errno_data (err, contact, xerrno);
3601
3602 pset_status (p, list2 (Fcar (data), Fcdr (data)));
3603 return;
3604 }
3596 3605
3597 report_file_errno ((p->is_server 3606 report_file_errno (err, contact, xerrno);
3598 ? "make server process failed"
3599 : "make client process failed"),
3600 contact, xerrno);
3601 } 3607 }
3602 3608
3603 inch = s; 3609 inch = s;
@@ -4608,7 +4614,7 @@ is nil, from any process) before the timeout expired. */)
4608 4614
4609 /* Can't wait for a process that is dedicated to a different 4615 /* Can't wait for a process that is dedicated to a different
4610 thread. */ 4616 thread. */
4611 if (!EQ (proc->thread, Qnil) && !EQ (proc->thread, Fcurrent_thread ())) 4617 if (!NILP (proc->thread) && !EQ (proc->thread, Fcurrent_thread ()))
4612 { 4618 {
4613 Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name; 4619 Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name;
4614 4620
@@ -5015,7 +5021,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5015 struct timespec now = invalid_timespec (); 5021 struct timespec now = invalid_timespec ();
5016 5022
5017 eassert (wait_proc == NULL 5023 eassert (wait_proc == NULL
5018 || EQ (wait_proc->thread, Qnil) 5024 || NILP (wait_proc->thread)
5019 || XTHREAD (wait_proc->thread) == current_thread); 5025 || XTHREAD (wait_proc->thread) == current_thread);
5020 5026
5021 FD_ZERO (&Available); 5027 FD_ZERO (&Available);