aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-20 20:19:28 +0200
committerLars Ingebrigtsen2019-09-20 20:19:28 +0200
commitb8e9baac9ada62c2ea7437579df4be9d4f437fda (patch)
tree6b91ed5b5a4f48bb47e7e12e7dc42d7d2e07fb59 /doc
parent385bb140de767ff59b026f5540e0e8bfae53fb55 (diff)
downloademacs-b8e9baac9ada62c2ea7437579df4be9d4f437fda.tar.gz
emacs-b8e9baac9ada62c2ea7437579df4be9d4f437fda.zip
Allow `process-contact' not to block
* doc/lispref/processes.texi (Process Information): Document it. * lisp/simple.el (list-processes--refresh): Don't wait for contact information for non-setup processes. * src/process.c (Fprocess_contact): Take an optional parameter to avoid blocking (bug#37408).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/processes.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 61de77d0662..4c7853bae86 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -1042,7 +1042,7 @@ this is either @code{nil}, which means the process is running or
1042@end smallexample 1042@end smallexample
1043@end defun 1043@end defun
1044 1044
1045@defun process-contact process &optional key 1045@defun process-contact process &optional key no-block
1046This function returns information about how a network, a serial, or a 1046This function returns information about how a network, a serial, or a
1047pipe connection was set up. When @var{key} is @code{nil}, it returns 1047pipe connection was set up. When @var{key} is @code{nil}, it returns
1048@code{(@var{hostname} @var{service})} for a network connection, 1048@code{(@var{hostname} @var{service})} for a network connection,
@@ -1086,6 +1086,11 @@ connection, see @code{make-pipe-process} for the list of keys.
1086 1086
1087If @var{key} is a keyword, the function returns the value corresponding 1087If @var{key} is a keyword, the function returns the value corresponding
1088to that keyword. 1088to that keyword.
1089
1090If @var{process} is a non-blocking network stream that hasn't been
1091fully set up yet, then this function will block until that has
1092happened. If given the optional @var{no-block} parameter, this
1093function will return @code{nil} instead of blocking.
1089@end defun 1094@end defun
1090 1095
1091@defun process-id process 1096@defun process-id process